
theheirofgondor1.5524923031126794E12 asked a question.
generateOptionsEntries question
So I'm trying to write this method for some of my custom classes and I'm looking at some of the methods that are already in place in other files and I'm a little confused at one part where it goes
if(context.getValueType() == WizardBean.TEMPLATE_VALUE){
acceptValue = rejectValue = LocalizedStringResolver.resolve("com.installshield.wizard.i18n.WizardResources", "WizardBean.valueStr");
}else{
acceptValue = context.getWizard().getServices().getISDatabase().getVariableValue(ACCEPT_BUTTON_VARIABLE);
rejectValue = context.getWizard().getServices().getISDatabase().getVariableValue(REJECT_BUTTON_VARIABLE);
}
I'm really not sure what either part of this block is doing. The top seems to be setting it by resolving a certain string and the bottom half I'm completely lost on and the API has turned out to be pretty useless. What is going on here and more importantly where are they getting the
"com.installshield.wizard.i18n.WizardResources", "WizardBean.valueStr"
and ACCEPT_BUTTON_VARIABLE/REJECT_BUTTON_VARIABLE (set to "LICENSE_ACCEPT_BUTTON" and "LICENSE_REJECT_BUTTON" respectively) information? I have a feeling these strings mean something and I can't just keep the copy paste or make up my own stuff to put in there but looking through all the program information I can't find where these variables are set or have any idea what to use for other or custom classes.
Any input is greatly appreciated.
-DBH
The former populates the options file with default settings, the latter populates the options file with values based on the user's recorded input.
The end of the help topic "Creating and Using a Response/Options File" and KB article Q106680 say a bit about it...
The getVariableValue function is being used to get the value of an ISMP variable associated with a dialog-box control, about which see for example "Getting and Setting a Variable in a Custom Dialog Event".