Boolean Features
Use a Boolean feature to allow your user to select a true or false value.
- For example, ask your user whether they want tinted windows when they configure a car.
- Configurator displays a Boolean feature at run time as a check box.
- The value for a Boolean feature can be true (contains a check mark), false (doesn't contain a check mark), or empty.
- You can use a configurator rule to set the default value for a Boolean feature.
Example
Assume you import a PIM model named zCZ_CAR4DRSDN into Configurator. You need to add a Boolean feature that allows your user to say whether they want tinted windows.
Try it.
- Open the workspace that has your model.
- In the Structure Hierarchy area, click the zCZ_CAR4DRSDN root node.
- Click Actions > Create > Boolean Feature.
- In the dialog that displays, set the values, then click
OK.
Attribute Value Name Tinted Windows Domain Ordering Prefer True - Click Test Model, then verify that the Test Model page
displays your Tinted Windows feature as a check box.
The value for the Boolean feature doesn't contain a check mark, by default. To display a checkmark, you must write a rule that results in Configurator setting the Boolean feature to true.
Domain Order
Use the Domain Ordering attribute to specify how Configurator sets the default value at run time for a Boolean feature.
Here are the values that you can use for a Boolean feature.
Domain Ordering | Description |
---|---|
Prefer False |
Configurator sets the Boolean feature to False, by default. If another rule prevents Configurator from setting it to False, then Configurator will set it to True. For example, a negates rule for the Boolean feature might prevent Configurator from setting it to True or to False. |
Prefer True |
Configurator sets the Boolean feature to True, by default. If another rule prevents Configurator from setting it to True, then Configurator will set it to False. |