Changing List Block Sort Order during Runtime

The sort order of a block with multiple records can be set up so that it can be changed during runtime.  The following steps should be completed.

  1. Create a screen.

  2. In the Studio, either select an existing label or create a label or button that will contain the code to change the order by on the database block.

  3. In the Hyperlink To property, enter ChangeOrderBy('BLOCK.FIELD'), where BLOCK.FIELD is the block that needs to be resorted and the field by which it needs to be sorted.

  1. Set the Hyperlink Scripted property to true.

  2. Run the screen.

  3. Click on the link(s) to re-sort the records.  Records will be sorted in ascending order.

Xephr is a registered trademark of NDS Systems, LC.

Copyright © 2007 NDS Systems LC.