Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Concepts : Bindings

Bindings
TIBCO Business Studio Forms uses bindings to update properties in the runtime forms data model by connecting attribute values of parameters, controls, and panes. A binding will always have two endpoints.
Absolute Bindings
An absolute binding can connect the value of a control to the value of a parameter’s data field, or to one of the child attributes or objects of that parameter.
Setting Bindings
Depending on the properties to be connected, bindings can be added from the General Properties tab of a control, pane, or a parameter. An optionlist and radiogroup, a URL and URL Text of Hyperlink, and the URL of an Image control can also have bindings which you can establish from the Properties tab of these controls. You can also use the Mappings tab to view, edit, and create bindings.
Set a Binding Between Controls
The General Properties tab for controls, shown in Figure 46, provides a mechanism for setting bindings between the value or property of one control and the value or property of another control or parameter.
Click the icon to launch a wizard that allows you set a binding for the given property or update that property using a rule that specifies a computation action.
Figure 46 Add a Binding for a Control Using the General Properties Tab
When you define a binding for a control, its value is used to update the secondary properties of another control such as Label, Hint, and so on. Note that the update is one way only, that is, the secondary properties cannot use bindings to update the value of the initially selected control.
Set a Binding Between a Control and a Parameter
To connect a control with a parameter, you can use either the General tab of a control, as in Figure 46, or the parameter dialog for that parameter, as in Figure 47.
Figure 47 Add a Binding for a Parameter Using Parameter Dialog
For information on working with bindings, see Setting Bindings.
Set a Binding from the Mappings Tab
You can use the Mappings tab of the Properties view for selected element in the Form Designer canvas to set bindings. See Working with the Mappings Tab for further details.
Direction of Bindings
A binding has one of three directions:
Updated By   : This signifies that the targeted value will be updated when the other value is updated.
However, if the target value changes for any reason, the other value in the binding will not be affected.
Update   : Updates to this value will cause the other value in the binding to be updated.
Note that control and parameter values can update other properties, but properties such as control visibility, enabled, required, label, and hint cannot update other values in a binding.
Synchronizes With   : With this type of binding, updates to either value will cause the other value to be updated to the same value. Each end of the binding must be either a control or parameter value.
Assign Binding Both Ways
Two ways binding can be added for controls (only for values) as follows:
1.
2.
3.
Go to Properties tab of the control textinput1 and click the binding icon for the Value field.
4.
Search for textinput2 control in the list and expand the items under it.
5.
Click the Value field of the textinput2 control. You will be able to assign a binding both ways.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved