Defined in packages/acs-core/table-display-procs.tclbuilds a form for setting up custom sorts.
- datadef is the table definition as in ad_table.
- type is select or radio (only select is implemented now)
- return_url is the return url passed through to the page that validates and saves the
sort customization.
- item_group is a string identifying the customization "ticket_tracker_main_sort" for example.
- item is the user entered identifier
- sort_spec is the sort specifier as in ad_new_sort_by
- allowed is the list of all the columns allowed, if empty all are allowed.
An example from the ticket system:
ad_table_sort_form $tabledef select $return_url ticket_tracker_main_sort $ticket_sort $orderby
- Parameters:
-
datadef
type (defaults to "select"
)
return_url (optional)
item_group (optional)
item (optional)
sort_spec (optional)
allowed (optional)