Use the Create Binding wizard to create a binding tag that you can use to bind some data to multiple locations in your project.
To create a binding, follow these steps:
1. Launch the Create Binding wizard in any of the following ways:
|
From Nexaweb Data perspective: |
From Nexaweb perspective: |
|
|
The Select Component dialog appears.
2. Complete the Select Component dialog as follows:
|
|
Click on the component to which to bind data and click Next. |
The Select the data source dialog appears.
2. Complete the Select the data source dialog as follows:
|
|
Either: - Click on an existing data source to bind to this component. - Click Add New Data Source to create a new data source to bind to this component. See the Creating a Data Source section of this document. |
Click Next.
The Select the type of data binding dialog appears.
3. Complete the Select the type of data binding dialog as follows:
|
|
Select the attribute to bind to: Enter an attribute of the component that you selected to which to bind data, or click Select the binding syntax to use: Click the radio button beside one of the following selections: - Inline (shortcut bind syntax) - Inline (full bind syntax and formatter support) - Create separate binding syntax <label text="{bind(binding:ds_bind)}" /> Select the binding type: Click the radio button beside the type for this binding: Create the select statement: Specify a query string specific to the data source or click |
3. Click Next.
A preview dialog appears displaying the binding syntax.
4. Click Finisih.
The binding you created appears:
-In Data view, under the Bindings node.
- In the Outline view under the UI file to which you added it.