PDA

View Full Version : Updating the Selected Installation Types



sbedell
03-14-2006, 11:16 AM
I am trying to update the Selected Installation type, but it will not refresh.

I have tried several different methods to do it in the initializeUI event. I have tried the following method by itself and in different combinations and all together but none of them will cause the GUI to refresh. If the user does not click anything in the GUI other than the next button the value I set in the InitializeUI method is selected correctly, it is just not refreshing the GUI. Any help would be greatly appreciated.




ISInstallationTypeControl ctrl = (ISInstallationTypeControl) arg0.getISPanel().getControl("installationTypes");
ISDatabaseDef dbase = ctrl.getISDatabaseDef();


ISInstallationTypeDef[] setupTypeDefs = ((ISDatabaseImpl) isDatabase).getDatabaseDef().getInstallationTypes();
for (int i = 0; i < setupTypeDefs.length; i++) {
if (setupTypeDefs[i].getName().equalsIgnoreCase(installType)) {
((ISInstallationTypeControlDef)ctrl.getControlDefinition()).setSelectedInstallationType(setupTypeDefs[i]);
dbase.setSelectedInstallationType(setupTypeDefs[i].getName());
dbase.getSelectedInstallationTypeVariable().setValue(setupTypeDefs[i].getName());
arg0.getServices().getISDatabase().setVariableValue("IS_SELECTED_INSTALLATION_TYPE",setupTypeDefs[i].getName());
ctrl.refreshExtendedProperties();
}



Thanks,
Scott