/
21 Setting default sort orders
21 Setting default sort orders
Chris Welford
Zoe Baldwin
Anthony George
Fiona Sargeant (Unlicensed)
Owned by Chris Welford
By the end of this section you will be able to:
- Set a default sort order on a view
Find the table for this exercise:
- Open the analysis model
Screens and Forms 01-08: Views, filters and screens
- Click on the table
Overall Debt Levels
, and go to the Sort Orders section. - Add a sort order:
- Press
.
- Name:
PaymentMeans,DebtLevel.
- Press
Apply.
- Press
Show attributes for <table>
under Sort Order Attributes. - Add
PaymentMeans
to the list of Sort Order Attributes. - Leave this as ascending (up arrow).
- Add
DebtLevel
to the list of Sort Order Attributes. - Update this to descending - click on the arrow, it will reverse the direction (down arrow).
- Press
Apply and Close to save the sort order.
- Press
- Press
Apply on the table settings.
- Open the screen
Overall Debt Levels
Show view configuration for the view.
- Set this as the Default Sort Order.
- Press
Apply and Close to save your changes.
- Go into
Application Mode to see the results.
Add a further sort order to the table:
- Right-click on the view and press
Show the Table Configuration
- In the Sort Orders section, press
- Name:
PaymentMeans,CalculationDate
- Sort by
PaymentMeans
(ascending),CalculationDate
(ascending)
You will use this sort order in the next exercise.
In PhixFlow, any saved sort order used on a view on a table can be used on any other view defined on that table. |