IRISLIB database
UtilsNav Class Reference

This class contains Properties and Methods in support of component tableNavBar in SMP. More...

Inheritance diagram for UtilsNav:

Public Member Functions

 navMaxRowsChanged (value)
 Maybe overriden by subclass.
 
 navPageSizeChanged (value)
 Maybe overriden by subclass.
 

Static Public Member Functions

 UpdateTableNavState (_.Library.String pFilter, _.Library.Integer pPageSize, _.Library.Integer pMaxRows)
 Used to Save TableNavigatorBar Values.
 

Public Attributes

 Filter
 Filter value user entered into the "Filter" field in the table navigator. More...
 
 TableMaxRows
 Max rows value user entered into the "Max rows" field in the table navigator. More...
 
 TablePageSize
 Page size value user entered into the "Page size" field in the table navigator. More...
 

Private Member Functions

_.Library.Status GetNavTableState (_.Library.String pPageName)
 Call this method from OnAfterCreatePage to load the last saved values for tableNavBar. More...
 

Detailed Description

This class contains Properties and Methods in support of component tableNavBar in SMP.


The purpose is to remember the last Page size and Maximum rows of the tableNavBar If you want to remember these, then do the following:

  • Extend your page to this class and add to the <tableNavBar>:
  • (1) saveSizeMax="true"
  • (2) onPageSizeChange="zenPage.navPageSizeChanged(value);" if you want to remember page size
  • (3) onMaxRowsChange="zenPage.navMaxRowsChanged(value);" if you want to remember max rows
  • In OnAfterCreatePage() of your page, add: Do ..GetNavTableState()

Example pages:

  • use CSP.UI.Portal.Utils as super class: CSP.UI.Portal.Processes, CSP.UI.Portal.ClassList
  • use CSP.UI.Portal.Template as super class: CSP.UI.Portal.Namespaces, CSP.UI.Portal.Users (with Filter=true)

Member Function Documentation

◆ GetNavTableState()

_.Library.Status GetNavTableState ( _.Library.String  pPageName)
private

Call this method from OnAfterCreatePage to load the last saved values for tableNavBar.


Pass in a special name you used for this page if differ from ..GetPageName.
For example Mappings is used for Global/Routine/Package Mappings, so the name used for save has MapType in it to distinguish. If tableId is not "table" then pass it in as the second piece delimited by "^" (example: CSP.UI.Portal.SQL.TuneTable).

Member Data Documentation

◆ Filter

Filter

Filter value user entered into the "Filter" field in the table navigator.

This value is saved and reloaded for this page.

 

◆ TableMaxRows

TableMaxRows

Max rows value user entered into the "Max rows" field in the table navigator.

This value is saved and reloaded for this page.

 

◆ TablePageSize

TablePageSize

Page size value user entered into the "Page size" field in the table navigator.

This value is saved and reloaded for this page.