Page 1 of 1

Values set to default when going Back

Posted: Thu Apr 26, 2012 5:12 am
by chintanpatel7
Hello,

See following use case:

I have enter some value in textbox in one installer dialog.
Then I click Next to go to Next Dialog.
Now I want to update the value in textbox of previous dialog.
But when I click Back, I see the value in textbox has been removed.
Also all other contols [radio, chckbox, dropdown] are set to their default value.
How can we keep control values persistent between dialogs?

Regards,
Chintan

Re: Values set to default when going Back

Posted: Thu Apr 26, 2012 8:06 am
by FrancescoT
Dear Chintan,

just bind your control to a script variable.

For example, suppose that you want to keep the text entered in a EDIT CONTROL:

- Open the dialog in Dialog Editor
- Double-click on the TEXT EDIT control on the dialog and select the Object Behavior tab.
- Set the Write Values to Variable edit box and enter the variable in your script to receive the selected value.

Note - The used variable must be declared before any call to that dialog in your script.

Hope this helps you.

Regards