This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Problem with Advanced Get User Input Panel
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 26, 2010
01:09 PM
Problem with Advanced Get User Input Panel
Using IA 2010 SP1. I recently made a change to replace a Simple Get
User Input panel with an Advanced one to fix a globalization problem
(text not wrapping). Both panels have Yes/No radio buttons with
variables $X_1$ assigned to Yes and $X_2$ assigned to No and No is
selected by default. The associated code (written for the Simple input
panel) tests $X_BOOLEAN_1$ = "1" to know if Yes was selected. However,
this stopped working with the Advanced panel. I printed out the
associated variables when I ran the installer and selected Yes. I see:
$X$:
$X_1$: 1
$X_2$: 0
$X_BOOLEAN_1$:
$X_BOOLEAN_2$:
The boolean variables are not even set and the X_1 and X_2 have the
boolean values. Before I make any code changes, is this to be expected? The IA help discussion about results variables makes me think that
this is not correct.
Chris
User Input panel with an Advanced one to fix a globalization problem
(text not wrapping). Both panels have Yes/No radio buttons with
variables $X_1$ assigned to Yes and $X_2$ assigned to No and No is
selected by default. The associated code (written for the Simple input
panel) tests $X_BOOLEAN_1$ = "1" to know if Yes was selected. However,
this stopped working with the Advanced panel. I printed out the
associated variables when I ran the installer and selected Yes. I see:
$X$:
$X_1$: 1
$X_2$: 0
$X_BOOLEAN_1$:
$X_BOOLEAN_2$:
The boolean variables are not even set and the X_1 and X_2 have the
boolean values. Before I make any code changes, is this to be expected? The IA help discussion about results variables makes me think that
this is not correct.
Chris
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 27, 2010
04:46 AM
Hello,
The Simple Get User Input panel has only one "result variable" which contains the result of all the inputs, so the result is "_1", then "_2", then "_n" and depends on the number of fields (see VAR_BOOLEAN_X Variable in the IA help)
While the Advanced mode has only one variable per input so if you name it "VAR", result will be "VAR=1" if it was selected. So this is the boolean value.
So your results $X_1$: 1 and $X_2$: 0 simply means that you named the result variable "X_1" for first choice and "X_2" for the second
Also take care if you support the console mode installer which also show different values (with '"' double quoted values).
--Jerome
The Simple Get User Input panel has only one "result variable" which contains the result of all the inputs, so the result is "_1", then "_2", then "_n" and depends on the number of fields (see VAR_BOOLEAN_X Variable in the IA help)
While the Advanced mode has only one variable per input so if you name it "VAR", result will be "VAR=1" if it was selected. So this is the boolean value.
So your results $X_1$: 1 and $X_2$: 0 simply means that you named the result variable "X_1" for first choice and "X_2" for the second
Also take care if you support the console mode installer which also show different values (with '"' double quoted values).
--Jerome