Skip to main content

%CSP.UI.Portal.UtilsNav

abstract class %CSP.UI.Portal.UtilsNav

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:
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)

Property Inventory

Method Inventory

Properties

property Filter as %ZEN.Datatype.string [ InitialExpression = "*" ];
Filter value user entered into the "Filter" field in the table navigator. This value is saved and reloaded for this page.
Property methods: FilterDisplayToLogical(), FilterGet(), FilterIsValid(), FilterLogicalToDisplay(), FilterLogicalToOdbc(), FilterNormalize(), FilterSet()
property TableMaxRows as %Integer [ InitialExpression = "1000" ];
Max rows value user entered into the "Max rows" field in the table navigator. This value is saved and reloaded for this page.
Property methods: TableMaxRowsDisplayToLogical(), TableMaxRowsGet(), TableMaxRowsIsValid(), TableMaxRowsLogicalToDisplay(), TableMaxRowsNormalize(), TableMaxRowsSet()
property TablePageSize as %Integer [ InitialExpression = "0" ];
Page size value user entered into the "Page size" field in the table navigator. This value is saved and reloaded for this page.
Property methods: TablePageSizeDisplayToLogical(), TablePageSizeGet(), TablePageSizeIsValid(), TablePageSizeLogicalToDisplay(), TablePageSizeNormalize(), TablePageSizeSet()

Methods

method %GetNavTableState(pPageName As %String = "") as %Status
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).
classmethod UpdateTableNavState(pFilter As %String, pPageSize As %Integer, pMaxRows As %Integer) [ ZenMethod ]
Used to Save TableNavigatorBar Values.
Maybe overriden by subclass.
Maybe overriden by subclass.

Subclasses

FeedbackOpens in a new tab