Zen based Lookup Table UI
User needs WRITE permissions on the %Ens_LookupTables resource to make changes on this page. parameter PAGENAME = "Lookup Tables";
Displayed name of this page. parameter RESOURCE = "%Ens_LookupTables:READ";
User needs READ permissions on the %Ens_LookupTables resource to access this page.
Is the user permitted to access the fileSelect popup. property currentRow as
The position (0-based) of the currently selected row. property lookupTable as
The name of the lookup table. property msgDocReadOnly as
Normalize the value of method %OnGetPageName() as
Get the (localized) name of the page. method %OnGetTitle() as
Get the (localized) title string for the page. classmethod CheckFilename(filename As
Check whether the specified file already exists or is in a non-existent directory. classmethod CreateDirectory(filename As
method DrawDescription(pSeed As
Draw the contents of the description panel. classmethod Export(Filename As
Export a lookup table in Tablename to file Filename. classmethod GetDefaultDir() as
classmethod GetHyperEventResources(pMethod As
Callback to return a list of resources required for a specific HyperEvent. The user must have sufficient privileges on one of the resource/permission pairs to be permitted to execute the hyperevent. An empty string implies the user already has sufficient privileges for the ZenMethod specified in pMethod. method GetInternalName() as
Return the internal name of the current document. classmethod GetLookupTableProxy(pLookupTable As
Helper method to create a Zen proxyObject instance to represent the specified lookup table. classmethod Import(Filename As
Import lookup tables from file Filename. Other types of documents, if any, are skipped. classmethod ImportLegacy(Filename As
Import lookup tables from file Filename, using legacy XML format, compatible with older versions. classmethod IsNameReadOnly(pName As
method LoadLookupTable(ByRef pParms, Output pObject As
Main method to get a JSON-ready representation of the current lookup table. classmethod NameCheck(newName) as
method OnDrawRibbon() as
Add to the contents of the tool ribbon. method OnGetRibbonInfo(Output pDisplay As
This callback, if implemented returns information used to display the standard ribbon bar. classmethod RemoveTable(tableName As
pDisplay is true if the ribbon should be displayed.
pViewIcons is an array describing "view" buttons to display: pViewIcons(n) = $LB(id,help,icon)
pSortOptions is an array describing "sort" options to display: pSortOptions(n) = $LB(id,caption,help)
pSearch is true if a search box is displayed.
pRibbonTitle is a title to display.
pCommands is an array of command buttons to display: pCommands(n) = $LB(id,caption,help,onclick)
Server method to delete table and all its settings method SaveLookupTable(pCommand As
Save the supplied lookup table. classmethod SetDefaultDir(pPathname As
- 0 - new entry
- 1 - modified entry
- 2 - deleted entry
- 3 - unchanged entry
readOnlyto the value of readOnly. Subclasses MUST implement this method to update the controls on the page so that the page's behaviour actually matches the value of the readOnly flag.
Helper method to ensure that
documentTimestampand readOnlyare up to date on the client.