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
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Testing feature selection in subsequent dialogs
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jun 19, 2006
07:53 AM
Testing feature selection in subsequent dialogs
Hi -
Another newbie question...
Basically, a user is presented with 3 different features to install. They can choose to install 1 or all of these features. A couple of 'Next' clicks later and I have a dialog window from which I would like to be able to display a particular message depending on which feature(s) were selected beforehand. How do I check which feature(s) were selected in the feature selection dialog window from within this new dialog window?
Thanks -
Paul
Another newbie question...
Basically, a user is presented with 3 different features to install. They can choose to install 1 or all of these features. A couple of 'Next' clicks later and I have a dialog window from which I would like to be able to display a particular message depending on which feature(s) were selected beforehand. How do I check which feature(s) were selected in the feature selection dialog window from within this new dialog window?
Thanks -
Paul
(2) Replies
‎Jun 19, 2006
08:14 AM
FYI...in case anyone is looking for the solution to a similar problem I was able to get around this by doing the following:
Set a global variable in 'Property Manager' and then set that variable accordingly within the feature selection dialog window. Then, test for that variable in the new window using something similar to:
try {
String variableName =
arg0.getServices().getISDatabase().getVariableValue
("VariableName");
if(variableName.equals("A"){
infoLabel.setText("It's A");
}else{
infoLabel.setText("It's B");
}else{
infoLabel.setText("It's C");
}
}
catch (Exception e) {
arg0.getServices().logEvent(this, Log.ERROR, e);
}
If anyone knows of a better solution to this particular problem I'd really like to hear what it is.
Thanks,
Paul
Set a global variable in 'Property Manager' and then set that variable accordingly within the feature selection dialog window. Then, test for that variable in the new window using something similar to:
try {
String variableName =
arg0.getServices().getISDatabase().getVariableValue
("VariableName");
if(variableName.equals("A"){
infoLabel.setText("It's A");
}else{
infoLabel.setText("It's B");
}else{
infoLabel.setText("It's C");
}
}
catch (Exception e) {
arg0.getServices().logEvent(this, Log.ERROR, e);
}
If anyone knows of a better solution to this particular problem I'd really like to hear what it is.
Thanks,
Paul
‎Jun 19, 2006
08:50 AM
You might see if the condition $P(featurebeanid.active) [with value "true" or "false"] works for you. Perhaps also see KB articles Q105801 and Q105638 at http://support.installshield.com.