Page 1 of 1
onaction in find mode
Posted:
Wed Mar 21, 2012 3:35 pm
by Hans Nieuwenhuis
Hi,
For a button to fire it's method in find mode I use : //controller.search()
Is this also possible for a radio button (onAction method) ? controller.search does not seem to work.
Depending on the selected radio button, I want to show different fields in the form
Regards,
Re: onaction in find mode
Posted:
Wed Mar 21, 2012 4:00 pm
by Peter de Groot
Hi,
Maybe using onDataChange event of the radio.
Re: onaction in find mode
Posted:
Wed Mar 21, 2012 4:03 pm
by Hans Nieuwenhuis
Noop, ondatachange does not fire in find mode
Re: onaction in find mode
Posted:
Mon Mar 26, 2012 5:16 pm
by jcompagner
i think it should work fine
if i quickly test in servoy 6 and i add : @AllowToRunInFind to the doc of the onaction of a radiobutton (or radio choice)
and the onaction was executed in find and in browse mode.
Re: onaction in find mode
Posted:
Mon Mar 26, 2012 6:36 pm
by Hans Nieuwenhuis
Thanks,
Will it also work in 5.2.12 ?
Regards,
Re: onaction in find mode
Posted:
Mon Mar 26, 2012 10:38 pm
by jcompagner
@allowtoruninfind is new in 6
its a replacement of just adding controller.search() somewhere in the code of the previous version.
I haven't tested it in 5, but i think it should work