PDA

View Full Version : can we change the default selection on a screen at runtime


kk250040
11-24-2008, 01:13 PM
Is there a possibility to change the default selection on a RadioButton Screen or default text on an EditField Screen at runtime.

My client needs my installer to retrieve the inputs from the host machine and then set them as default text on my EditField Screens. If the values do not exist on host previously only then provide some regular default value for that entry,
and a similar case with the RadioButton Screen, select the radio option from a decision made from a registry entry on host.

Is it possible to change the default values on screens at runtime???? :huh
Please help and any help appreciated.

Thanks in advance

kk250040
11-25-2008, 03:03 PM
I have done it through writing scripts to retrieve host's information on StartUp Event, and setting the default options on Screens through the .SetProperties in the PreLoad Action Tabs of those screens.

Its working fine till some extent, but now I see a problem when I edit the default selction to a different option at runtime, and at some point when I go back to those screens by pressing Back button, the options I am setting at runtime are over-written by the options in the PreLoad Action Tab again.

i will try to resolve this by putting some more code to support my problem, but is there a better solution of I can handle these options.

Thank You!

kk250040
11-26-2008, 08:09 AM
Added a few boolean values in PreLoad actions of screens to handle this and the job is done.

Thanks!