Class Reference
IRIS for UNIX 2024.1.2
|
|
Private
Storage
|
Extend to this class for pages that use tablePane as main component and needs auto-refresh to be shown on the ribbon bar. For example, Home->Operations->Databases or Processes.
|
|
|
|
|
Be sure to do ##super() when overriding.
Use this method to build a meter for Dashboard. (See example for usage in %CSP.UI.Portal.ProcessDetails.cls)
***** Refresh Feature for tablePane pages in SMP *****
The following methods are used by pages that want to display Refresh on/off and allow to enter refresh rate (number of seconds.) Sub-classes may over-ride them but please do not modify them unless you take care of all pages that use them and test each page thoroughly. When used, the tablePane on your page may be refreshed at the rate you define, and will remember the state, rate, current column and sort order.
To use this feature, do the following (see %CSP.UI.Portal.OpDatabases.cls for example):
This method can be called from OnDrawRibbon of your UI Zen page. Pass in the page name which should be consistent with how the temp global is saved.
- Class extend to %CSP.UI.Portal.Utils
- Add the following code:
- Use tablePane with id="table" and add event onheaderClick for column sort.
- Add to %OnAfterCreatePage to get TableState and AutoRefreshRate set into timeout.
- In method OnDrawRibbon, add
Do ..DrawAutoRefresh(..%GetPageName())
- Override updateView() if your class has Filter turned on for tableNavigatorBar.
Save auto refresh rate (how many seconds user entered) to server.
Save auto refresh state (Refresh on or off) ito server.
Save current column and state to server so that when page is refreshed or reloaded the sort and state remain the same.
User clicked a column header to sort. Save that so we can come back to it when page is refreshed.
This method returns current date and time in $ZDT($ZU(188),3,,3) format
***** End of Refresh Feature for tablePane ***** ********************************************************/// If Refresh Feature is turned on, then clearTimer before exist.
Table auto-refresh timer handler.
Check if user hit [Enter] on refreshRate textbox.
Turn auto-refresh mode on and off.
User changed refresh rate. Validate it and save value to server.
Update / Reload table. Subclass may override this method. Do not modify this method unless you are going to take care of all pages that use it.