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
- :
- Disable a feature within the destination dialog
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jul 13, 2006
05:14 PM
Disable a feature within the destination dialog
Depending on the path the user chooses in the destination dialog I would like to disable and/or hide certain features on the next feature dialog.
I have tried:
ProductService productservice = (ProductService)wizard.getServices().getService(ProductService.NAME);
productservice.setProductBeanProperty(ProductService.DEFAULT_PRODUCT_SOURCE,"mybeanId", "Active","False");
as well as
wizard.getServices().setValue(wizard.getServices().resolveString("$P(mybeanId.active)"),"False");
Neither one seems to work. Has anyone been able to do this?
I have tried:
ProductService productservice = (ProductService)wizard.getServices().getService(ProductService.NAME);
productservice.setProductBeanProperty(ProductService.DEFAULT_PRODUCT_SOURCE,"mybeanId", "Active","False");
as well as
wizard.getServices().setValue(wizard.getServices().resolveString("$P(mybeanId.active)"),"False");
Neither one seems to work. Has anyone been able to do this?
(4) Replies
‎Jul 17, 2006
09:35 AM
Try not using the capitols in Active and False => use "active" and "false"
Another way I've done it in the past is I set some variable in the Events for the Dest Dialog depending on the path:
arg0.getServices().getISDatabase().setVariableValue("PATH", "ok" );
Then in the Sequences insert a Sub Sequence -> Wizard sequence after the Dest Dialog and put in the Conditions => string comparison:
Compare Text => $V(PATH)
Equals
Source => ok
Then insert 2 'Set Product Bean Prop' Wizard Actions for the Features BeanID you want to update: one action for the active property and one for the visible property!
Obviously - it's easier to just use the code!
Hope this helps!
Tom
Another way I've done it in the past is I set some variable in the Events for the Dest Dialog depending on the path:
arg0.getServices().getISDatabase().setVariableValue("PATH", "ok" );
Then in the Sequences insert a Sub Sequence -> Wizard sequence after the Dest Dialog and put in the Conditions => string comparison:
Compare Text => $V(PATH)
Equals
Source => ok
Then insert 2 'Set Product Bean Prop' Wizard Actions for the Features BeanID you want to update: one action for the active property and one for the visible property!
Obviously - it's easier to just use the code!
Hope this helps!
Tom
‎Jul 24, 2006
02:19 PM
I think you have to use an immutable condition on the features. Then they will not show. Be aware though that since they are immutable you want the user from being prevented from moving back and change the condition.
‎Jul 27, 2006
12:01 PM
Yes - I forgot to mention that - you need to basically add both scnenarios - one to make 'active' true and one to make 'active' false for the reasons BJFRARY brings up! If the user goes back and fixes or goes into the right directory - you need to set the actives to true!!!
Regards,
Tom
Regards,
Tom