Values set to default when going Back

Got a problem you cannot solve? Try here.

Values set to default when going Back

Postby chintanpatel7 » Thu Apr 26, 2012 5:12 am

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
chintanpatel7
 
Posts: 21
Joined: Thu Feb 16, 2012 11:02 pm

Re: Values set to default when going Back

Postby FrancescoT » Thu Apr 26, 2012 8:06 am

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
Francesco Toscano
InstallAware Software Support

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
FrancescoT
Site Admin
 
Posts: 1836
Joined: Sun Aug 22, 2010 4:28 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 3 guests