Zen based Lookup Table UI
User needs WRITE permissions on the %Ens_LookupTables resource to make changes on this page.
Displayed name of this page.
User needs READ permissions on the %Ens_LookupTables resource to access this page.
Is the user permitted to access the fileSelect popup.
The position (0-based) of the currently selected row.
The name of the lookup table.
Normalize the value of
Get the (localized) name of the page.
Get the (localized) title string for the page.
Check whether the specified file already exists or is in a non-existent directory.
Draw the contents of the description panel.
Export a lookup table in Tablename to file Filename.
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.
Return the internal name of the current document.
Helper method to create a Zen proxyObject instance to represent the specified lookup table.
Import lookup tables from file Filename. Other types of documents, if any, are skipped.
Import lookup tables from file Filename, using legacy XML format, compatible with older versions.
Main method to get a JSON-ready representation of the current lookup table.
Add to the contents of the tool ribbon.
This callback, if implemented returns information used to display the standard ribbon bar.
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
Save the supplied lookup table.
Add a copy of the current table state to the undo stack.
Adjust sizes of components on the page.
strict alphabetical sort used to sort rows in UI.
Apply changes from the form back to the JSON model.
Helper method to indicate whether there is any data on the undo stack.
Check to see if the new name for this table is already in use before saving. If the new name is already in use, confirm that the user wishes to overwrite the old table of that name.
Handle a source control menu selection.
Clear the undo stack.
Reset the form programmatically.
Create a clone of the given object. Used in the undo logic.
User clicked the Delete button for a table.
Actually perform the export to the specified file.
Render the contents of the detail table.
Launch a dialog so the user can choose a file to export the current lookup table to.
Get the JSON model on the client.
Return the extension used by Studio for the class/object
Return the current name of the class/object being modified
Get the list of lookup values.
Launch a dialog so the user can choose a file to import a lookup table from.
Launch a dialog so the user can choose a file to import a lookup table from, in legacy format (exported from an older version).
Initialise the table rendering of the page.
Modified sort, which sorts new, modified, deleted, and then unchanged rows, with alphabetical sorting within each group. A weight is given to each state so it is easy to produce a sort order. The weights are as follows:
- 0 - new entry
- 1 - modified entry
- 2 - deleted entry
- 3 - unchanged entry
Prompt the user for the name of a new table to edit.
Ensure we redraw the diagram if a reload was requested
Handle various dialogs.
This client event is fired when the page is resized.
Launch a dialog to choose a different table to open.
User clicked the Delete button for a row. addBack should be used to indicate that a previously deleted key should be added back to the table.
Add the HTML for a row in position pos using the data from position index in the list of values.
Save the current lookup table.
Launch popup window to begin 'save as' process
User selected a row in the lookup table.
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.
UpdateSCMenu() first in case the document has been modified elsewhere, then display the source control menu based on the contents of the _sourceControlMenu data created by UpdateSCMenu().
Toggle whether the button with Id zenId is enabled or disabled.
Helper method to ensure that the two buttons in the right hand side of the page are toggled together.
Toggle whether the undo icon should be shown or not.
If the current action can be undone, do so.
Helper method to ensure that
documentTimestampand readOnlyare up to date on the client.