ad_table_sort_form

EveAndersson.com : API Browser : ad_table_sort_form

ad_table_sort_form

ad_table_sort_form datadef [ type ] [ return_url ] [ item_group ] \
    [ item ] [ sort_spec ] [ allowed ]
Defined in packages/acs-core/table-display-procs.tcl

builds 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)
[ show source ]

Show another procedure:

eve@eveandersson.com