You may want to apply a number of format transformations to data coming from a data source for presentation in the UI.
You can create a formatter chain with any combination of the existing formatters in an application project.
To create a formatter chain, follow these steps:
1. To open the Formatter Chain wizard, either:
|
From Nexaweb Data perspective: |
From Nexaweb perspective: |
|
|
The Create Formatter dialog appears.
2. Select formatterChain from the FormatterTypes selection box and click Next.
The Formatter Chain dialog appears.
3. Complete the Formatter Chain dialog as follows:
|
|
ID: Specify a system wide unique value to identify this formatter chain. Formatters: Lists the formatters and formatter chains available in this project. Click the check box beside each formatter to use for this new formatter chain. Use the Select/Deselect button to select or deselect all formatters. Use the Up/Down buttons to change the order of formatters in the change. Use the Add button to create a new formatter. |
3. Click Next.
Nexaweb Studio displays a Formatter Chain Preview dialog. Click Back to change the formatter chain definition.
5. Click Finish.
The formatter chain you created appears under the Formatter Chains node in the Data view in the Nexaweb Data perspective and in the Outline view in the Nexaweb perspective.
Use a formatter with a binding by either:
Dragging a formatter chain onto the Binding node in the Data view. This launches the Create Binding wizard with this formatter chain already specified in the Formatter field on that wizard.
Launch the Create Binding wizard and select a formatter chain to use in the Formatter field.