|
|
The View menu is used to change the data displayed in the main list. Sorting list items or switching views between different types of objects (such as users and groups) should be placed here. Other options that should appear in the menu are Set Auto Refresh and Refresh Now, implemented via SaAutoRefresh(3tlib) (if refreshing the view makes sense).
Template sample code: Refresh menu options
if {$appvals(autorefresh)} { set intervalCB {}# Allow user to select auto refresh interval? if {$appvals(autorefreshcust)} { # use default callback in package set intervalCB \ [list SaAutoRefreshIntervalCB \ $appvals(autorefreshmin) \ $appvals(autorefreshmax) \ ] } VtSeparator $viewMenu.s1 SaAutoRefresh UiRefreshCB \ $viewMenu \ "data" \ SaShortHelpCB \ $intervalCB SaAutoRefreshLoad $appvals(client) }
See also: