In addition to adding new rules through the
Outline view, you can also create a computation rule (a rule with a computation action) directly from property you want to create a computation rule for.
Procedure
Click the
Add a binding or rule button next to a property, such as for the
Value property of the
Name control.
In the
Select Type dialog, select the
Update this property using a Computation Action radio button.
Click
Next.
In the
Provide Expression dialog, provide the script. In this case, there is no option to select the destination, since the destination is implicit on where you are adding the computation action.
Click
Next.
In the
Events Configuration dialog, use the
Add button to add events or the
Delete button to remove events associated with the rule.
Click the
Add button.
The Event Picker, which is used to select the events that trigger a rule, opens with a dialog
Select Item.
Click the event you want to associate with the rule.
Click
OK to confirm the selection.
You can add multiple events to associate with the rule. You can also delete any of the previously selected events from the list.
Click
Finish when you are done configuring the rule.
A rule icon appears next to the property, and allows easy editing of the compute action. Additionally, the rule appears in the
Outline view and can be edited as a regular rule.