|
Binding Target |
Top Previous Next |
|
The binding target is an object affected by the binding. It can either be a widget component or some data within a AggreGate Server context. To affect a widget component, the binding target has to point to one of its properties. To modify context data, the binding target has to point to a context variable, field of a variable or the input field of a context function. In fact, the binding target is a special type of reference. Two types of binding targets are supported: one with no schema (and thus, no prefix), which points to context data, and another, which uses the form schema and prefix (form/) and points to the widget component properties. There are several supported forms of binding targets: form/component:property This binding target points to a specific property of a widget component. Binding target that refers cell of the tabular property within the specific row and field has the following format: form/component:property$field[row]
context:variable This binding target points to the value of a context variable. Since a variable is always a Data Table, the binding expression must resolve to a Data Table in order to allow bindings processor to use this table as new value of variable.
3. Field of Server Context Variable context:variable$field This binding target points to a specific field within a context variable. The actual value of the context variable will be changed just once during the bindings processing session, even if there are several bindings targets pointing to the fields of this variable.
context:function() This type of target points to the function of a context. When a binding with such target is processed, that function is called. If some bindings pointing to the input fields of the function are processed within the same bindings processing session, the values produced by these bindings are used as the function input. Otherwise, the function is called with default input parameters. 5. Input Field of Context Function context:function()$field This binding target points to an input field of a context function. The actual function call will be performed just once during the bindings processing session, even if there are several binding targets pointing to various input fields of this function.
form/script() This type of binding target is used to launch the widget script named script upon processing the binding, passing the binding evaluation result to the script as its parameter. Bindings with such targets are created automatically upon adding new scripts to the widget template. However, initial properties of such binding does define any script launch conditions. It's necessary to modify these properties to make the script start on widget startup, some event or just periodically.
7. Context Action action/context:action This target starts interactive execution of action action from context context. Binding evaluation result is passed to the action as an input value.
|