(416) 483-5219 sales@arnicasoftware.com Registration Log In
(416) 483-5219 sales@arnicasoftware.com

How to implement randomized sort order in a report

February 8, 2013 by Igor Lozhkin
To implement randomized data sorting in a report each time data is fetched from database, Arnica WebReport provides an easy solution:
  1. Create a custom column with character data type
  2. Use a custom column expression to generate global unique identifier value
  3. Make this column invisible in report output
  4. Create a sort order based on this column, and make this sort order default
Steps #1, #2 - data definition for custom column with expression generating random value:


Step #3 - custom column is set to be invisible in report output:


Step #4 - predefined sort order based on the custom column with random value. Sort order is set as default:


Find more examples of reports built with Arnica WebReport  on the Arnica Software demo site.