Use the Sort builder to add the ability for the user to sort the columns displayed on a page in the model.
The first time the table on which the Sort builder call operates gets displayed, the data is unsorted. The first click on the sort link rearranges the data in ascending order (low value to high value); a second click on the sort link rearranges the data in descending order (high value to low value).
The Sort builder works with the following builders.
- Dynamic Table
- Data Page
- Repeated Region
Each of these builders adds a table to a page and you can specify a column heading or another named tag on the page on which the Sort builder places a link to sort the specified column.
Use values in the default WebApp theme file or in the builder inputs to enhance the end-user experience.
- The UI Style input lets end users see the current sort information.
- Use a CSS style to indicate in the column header the current sort state.
- Control whether the sort operation does a partial page refresh.
The following attributes in the wpfbase.uitheme
file apply to the sort user interface.
If you do plan to use a Data Page builder and want to add sorting to a table, consider implementing sort capability with a Data Column Modifier builder rather than with a Sort builder. The advantage the Data Column Modifier builder provides is that it allows you to add sorting to multiple columns with a single builder.
Parent topic: Builder help
About using the builder call editor
Data Column Modifier builder
Locating control builder calls on pages