From the speed table API, stDisplay, speed table display functions for the world wide web. This code is derived from Rivet's diodisplay.tcl.
set display [::STDisplay #auto ?-confvar value? ... \ -table table ?-keyfields key_list?]
or
set display [::STDisplay #auto ?-confvar value? ... \ -uri uri]
One of -table or -uri must be provided.
Options:
If the table isn't STAPI-compatible it will use ::stapi::extend::connect to wrap it and in this case keyfields must be provided.
Any valid STAPI URI can be used.
Set debug level
Name of CSV file to generate.
If enabled, then the CSV file is downloaded immediately using a redirect.
Field to use as a key
Title of table.
Symbols or HTML fragments to use for ascending and descending sort of a table column.
If true, this is a read-only table, clear the "Edit" and "Delete" functions.
If true (default), provide the 'Details' function
Number of rows displayed per page.
Functions shown on the top of the display.
Functions shown at the end of the row.
Render all HTML for the page. Destroys $display.
Destroys $display
Returns a list of name-value pairs that represent the current state of the query, as CGI variables, for populating external links. The counterpart to hidden
Equivalent to the -functions configuration variable - enable global functions, to control the functions available in the search bar. The possible functions are Search, List, Add, Edit, Delete and Details.
Equivalent to the -rowfunctions configuration variable - enable row functions, to control the functions available in the search bar. The possible functions are Edit, Delete and Details.
Define a field
Define an alias for an existing field. Aliases are used to create multiple filtered columns based on the same field.
Filter column name through [proc $value_of_field ...] before displaying. If any columns are provided the values of these columns will be appended to the filter.
Filter column name through [proc $value_of_field] on generating a CSV file, like filter.
Filter entered text through [$proc text] before using to search table. This allows the user to enter (for example) a device name for a field that expects an IP address.
Set sort order for field.
Set whether the column can be matched uppercase or lowercase when doing a case-independent match.
Set text to be displayed when hovering the cursor over the title of the column.
Value to treat as a null value and display as an empty cell.
Set search terms to limit the displayed portion of the ctable. The limit is a list of {column_name value ?column_name value?}.
Set attributes (eg "bgcolor=blue") for field
This is used to pass any additional CGI variables the page will require through the links generated by STDisplay. This method may be invoked for each value