![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
For an overview of bindings and their use in TIBCO Business Studio Forms, see Bindings. For most controls, many properties on the Properties View can be initialized by an inbound parameter or expression.The properties that may be initialized in this way are identified by the presence of a Add Binding iconto the right of the field where the property’s value is set.
As explained in Setting Bindings, you can add a binding in one of the following ways:
• From the General Properties tab for a control
• From the Mappings tab of the Properties view for the selected elementThe General tab of the Properties View for a control may contain the binding icons indicating that a parameter or expression can be bound to any of the following properties: Label, Hint, Value, Visible, Enabled, and Required, which each can have only one binding or computation action.The value property can have multiple bindings and/or computation actions. For details about these properties, see Properties View for Controls.
2. Select the radio button Create a binding for this property.
3. Click Next.
Click the Down arrow on the right (above the Select an item... window) to select from these options:
• Show controls and panes If this is not selected, then only parameters will be shown in the Matching and selected items pane.
• Show unbound items only If this is selected, then any properties that already have bindings will not be shown.You can select either one, both, or none by clicking on the corresponding check mark. In our example on Figure 81, the controls and panes are selected. This text box allows you to type in a filter expression that will restrict the items shown in the Matching and selected items pane. Names, labels, and property names are matched by the filter. For example, select the parameter (CustAge), which will update the Guardian Name if the customer age is less than 21. In the section property of control, the three binding directions are displayed. The binding types that are available for use are enabled, while the ones that are not available appear as disabled (grayed out).
•
•
• If the selected property can be bound the way it was selected, the Finish button in the bottom of the diagram is enabled.Figure 82 Multiple Bindings AddedThe General tab of the Properties View for a parameter contains a binding icon indicating that a parameter can be bound to a control.
1. Select the property in the Outline View, such as Name (CustName).Figure 83 General Properties Tab for the Parameter
3. The Mappings tab of the Properties view for a selected element provides a comprehensive view of all the bindings and computation actions. You can view, edit, and create bindings from the Mappings tab. Refer to Working with the Mappings Tab for further details.Click the Remove button in the Edit Binding dialog.
1. Figure 84 Adding a New Script Action
2. In the pop-up menu, select New Script Action.
4. Click Finish.
1.
2. In the pop-up menu, select New Computation Action.
Once you select the value, it will appear in the Destination window, such as Value of Claim Amount (ClaimAmount). Note: Do not use a return, since you are not writing a function.
4. Click Finish.
1. In the Outline View, right-click the Rules icon.
2. In the pop-up menu, select New Rule.
Table 11 Specify the Details for Rules
4. Click Next to define the rule.In the Rule: Pick Events page, use thebutton to add events or delete the
button to remove events associated with the rule.
Figure 85 Rule: Pick Event PageThe Select Event page , which is used to choose the events that trigger a rule, opens with a dialog Select Item.Figure 86 Select Event Page
6. Click the event you want to associate with the rule, such as update property. You may select multiple events by holding down the control key as you select the events.
7. Click OK to confirm the selection.
8. The Define Actions page opens.Figure 87 Define Actions for the Rule
10.
1. Click the Browse icon (...) next to Pick an existing action.
2. In the Select Item dialog, select an action from the list of Matching and selected items and click OK.
3. Click Finish.The Define actions dialog appears.Figure 88 Define Actions Dialog for the Rule
4. In the Define actions dialog, you can further configure the new action by selecting (or clearing) the check boxes to enable (or disable) the action, or to designate the action to be shared.
6. Click Finish.
1. Click the Create a New Action radio button.
3. Click Next.
Once you select the value, it will appear in the Destination window, such as Value of Claim Amount (ClaimAmount).
1. Click the Add a binding or rule iconnext to a property, such as for the Value property of the Name control.
2. In the Select Type dialog, select the Update this property using a Computation Action radio button.
3. Click Next.
4. Click Next.The Event Picker, which is used to choose the events that trigger a rule, opens with a dialog Select Item.
7. Click OK to confirm the selection.
8. Click Finish when you are done configuring the rule.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |