View Full Version : Active property and Subfeatures
GrantI
07-19-2002, 04:15 PM
Does anyone know if you need to set sub-features to active=false when you set the parent feature active=false (programatically speaking, that is), or is it implied by the parent being false.
I am doing this via the setProductBeanProperty method.
BillBr
07-19-2002, 05:00 PM
Greetings:
Your assumption is correct. If you do not specifically set the properties of the sub-Features in you code, they will inherit the settings of the parent strating from the root product. I do not have a sample bean that demonstrates this, but you can test via the command line with the settings "-W beanID.subFeatureProperty=value"
Hope this helps
Bill Brown
InstallShield Technical Support.
GrantI
07-19-2002, 05:09 PM
I have my own feature panel, where I set productBean.setActive() and productService.setProductBeanProperty(). I then later have wizards that show up only when sub-features are on. It wasn't until I explicitly deactivated all children (when inactivating the parent via the feature panel) that the later panels stopped showing up.
Jeff Dillon
07-22-2002, 09:36 AM
The answer depends on what you mean by "implied".
When the product tree is installed, a parent feature of false implies the children will not be installed. But, this does not mean that the children's active properties actually equals false.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.