Creating a Formatter Chain

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:

  • Right click in the Data view and select New > Formatter Chain

  • Select Tools > Formatter Chain

  • Right click in a UI file and select New > Formatter Chain

  • Select Tools > Formatter Chain

The Create Formatter dialog appears.

image\img00273.gif

2. Select formatterChain from the FormatterTypes selection box and click Next.

 The Formatter Chain dialog appears.

3.  Complete the Formatter Chain dialog as follows:

image\img00274.gif

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: