EnsPortal.LookupSettings
class EnsPortal.LookupSettings extends EnsPortal.Template.devPage
Zen based Lookup Table UIProperty Inventory
- canViewFileSystem
- currentRow
- lookupTable
- msgDocReadOnly
- tipDelete
- tipExport
- tipImport
- tipImportLegacy
- tipNew
- tipOpen
- tipSave
- tipSaveAs
Method Inventory
- %OnAfterCreatePage()
- %OnGetPageName()
- %OnGetTitle()
- CheckFilename()
- CreateDirectory()
- DrawDescription()
- Export()
- GetDefaultDir()
- GetHyperEventResources()
- GetInternalName()
- GetLookupTableProxy()
- Import()
- ImportLegacy()
- IsNameReadOnly()
- LoadLookupTable()
- NameCheck()
- OnDrawRibbon()
- OnGetRibbonInfo()
- RemoveTable()
- SaveLookupTable()
- SetDefaultDir()
- addUndoAction()
- adjustSizes()
- alphaSort()
- applyChanges()
- canUndo()
- checkName()
- chooseSCMenu()
- clearUndoBuffer()
- clearValues()
- cloneObject()
- deleteTable()
- doExport()
- doImport()
- doImportLegacy()
- drawTableDetails()
- exportTable()
- getClientModel()
- getCurrentExtension()
- getCurrentName()
- getTableObject()
- getTableValues()
- importTable()
- importTableLegacy()
- invokeAfterUserAction()
- loadDetails()
- modSort()
- newTable()
- onPopupAction()
- onlayoutHandler()
- openTable()
- removeRow()
- renameSave()
- renderRow()
- saveTable()
- saveTableAs()
- selectRow()
- setReadOnly()
- toggleButton()
- toggleFormButtons()
- toggleUndoIcon()
- undo()
- updateDocumentState()
Parameters
parameter EDITRESOURCE = %Ens_LookupTables:WRITE;
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.
Properties
property canViewFileSystem as %Boolean [ InitialExpression = $system.Security.Check("%Ens_ViewFileSystem","USE") ];
Is the user permitted to access the fileSelect popup.
Property methods: canViewFileSystemDisplayToLogical(), canViewFileSystemGet(), canViewFileSystemIsValid(), canViewFileSystemLogicalToDisplay(), canViewFileSystemLogicalToXSD(), canViewFileSystemNormalize(), canViewFileSystemSet(), canViewFileSystemXSDToLogical()
property currentRow as %ZEN.Datatype.integer [ InitialExpression = -1 ];
The position (0-based) of the currently selected row.
Property methods: currentRowDisplayToLogical(), currentRowGet(), currentRowIsValid(), currentRowLogicalToDisplay(), currentRowLogicalToOdbc(), currentRowNormalize(), currentRowSet()
property lookupTable as %ZEN.Datatype.string (MAXLEN = 220, ZENURL = "LookupTable");
The name of the lookup table.
Property methods: lookupTableDisplayToLogical(), lookupTableGet(), lookupTableIsValid(), lookupTableLogicalToDisplay(), lookupTableLogicalToOdbc(), lookupTableNormalize(), lookupTableSet()
property msgDocReadOnly as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("This lookup table is read only.") ];
Property methods: msgDocReadOnlyDisplayToLogical(), msgDocReadOnlyGet(), msgDocReadOnlyIsValid(), msgDocReadOnlyLogicalToDisplay(), msgDocReadOnlyLogicalToOdbc(), msgDocReadOnlyNormalize(), msgDocReadOnlySet()
property tipDelete as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Delete the currently selected lookup table") ];
Property methods: tipDeleteDisplayToLogical(), tipDeleteGet(), tipDeleteIsValid(), tipDeleteLogicalToDisplay(), tipDeleteLogicalToOdbc(), tipDeleteNormalize(), tipDeleteSet()
property tipExport as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Export the currently selected lookup table to a file in XML format") ];
Property methods: tipExportDisplayToLogical(), tipExportGet(), tipExportIsValid(), tipExportLogicalToDisplay(), tipExportLogicalToOdbc(), tipExportNormalize(), tipExportSet()
property tipImport as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Import lookup tables from a file") ];
Property methods: tipImportDisplayToLogical(), tipImportGet(), tipImportIsValid(), tipImportLogicalToDisplay(), tipImportLogicalToOdbc(), tipImportNormalize(), tipImportSet()
property tipImportLegacy as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Import lookup tables from a file that was exported in legacy format (older version)") ];
Property methods: tipImportLegacyDisplayToLogical(), tipImportLegacyGet(), tipImportLegacyIsValid(), tipImportLegacyLogicalToDisplay(), tipImportLegacyLogicalToOdbc(), tipImportLegacyNormalize(), tipImportLegacySet()
property tipNew as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Create a new lookup table") ];
Property methods: tipNewDisplayToLogical(), tipNewGet(), tipNewIsValid(), tipNewLogicalToDisplay(), tipNewLogicalToOdbc(), tipNewNormalize(), tipNewSet()
property tipOpen as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Open an existing lookup table") ];
Property methods: tipOpenDisplayToLogical(), tipOpenGet(), tipOpenIsValid(), tipOpenLogicalToDisplay(), tipOpenLogicalToOdbc(), tipOpenNormalize(), tipOpenSet()
property tipSave as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Save the current lookup table") ];
Property methods: tipSaveDisplayToLogical(), tipSaveGet(), tipSaveIsValid(), tipSaveLogicalToDisplay(), tipSaveLogicalToOdbc(), tipSaveNormalize(), tipSaveSet()
property tipSaveAs as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Save the current lookup table with a different name") ];
Property methods: tipSaveAsDisplayToLogical(), tipSaveAsGet(), tipSaveAsIsValid(), tipSaveAsLogicalToDisplay(), tipSaveAsLogicalToOdbc(), tipSaveAsNormalize(), tipSaveAsSet()
Methods
method %OnAfterCreatePage() as %Status
Normalize the value of lookupTable.
method %OnGetPageName() as %String
Get the (localized) name of the page.
method %OnGetTitle() as %String
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.
classmethod GetDefaultDir() as %String [ ZenMethod ]
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 %String
Return the internal name of the current document.
classmethod GetLookupTableProxy(pLookupTable As %String = "", Output pProxy As %ZEN.proxyObject) as %Status
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.
method LoadLookupTable(ByRef pParms, Output pObject As %ZEN.proxyObject) as %Status
Main method to get a JSON-ready representation of the current lookup table.
classmethod NameCheck(newName) as %String [ ZenMethod ]
method OnDrawRibbon() as %Status
Add to the contents of the tool ribbon.
method OnGetRibbonInfo(Output pDisplay As %Boolean, Output pViewIcons As %List, Output pSortOptions As %List, Output pSearchBox As %Boolean, Output pRibbonTitle As %String, Output pCommands As %List) as %Status
Inherited description: 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)
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 %String, pProvider As %ZEN.Auxiliary.jsonProvider, pSubmitObject As %ZEN.proxyObject, Output pResponseObject As %RegisteredObject) as %Status
Save the supplied lookup table.
classmethod SetDefaultDir(pPathname As %String) [ ZenMethod ]
clientmethod addUndoAction(setModified) [ Language = javascript ]
Add a copy of the current table state to the undo stack.
clientmethod adjustSizes() [ Language = javascript ]
Adjust sizes of components on the page.
clientmethod alphaSort(a, b) [ Language = javascript ]
strict alphabetical sort used to sort rows in UI.
clientmethod applyChanges() [ Language = javascript ]
Apply changes from the form back to the JSON model.
clientmethod canUndo() [ Language = javascript ]
Helper method to indicate whether there is any data on the undo stack.
clientmethod checkName(newName) [ Language = javascript ]
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.
clientmethod chooseSCMenu(menuName, commandName, saveFlags) [ Language = javascript ]
Handle a source control menu selection.
clientmethod clearUndoBuffer() [ Language = javascript ]
Clear the undo stack.
clientmethod clearValues() [ Language = javascript ]
Reset the form programmatically.
clientmethod cloneObject(obj, clone) [ Language = javascript ]
Create a clone of the given object. Used in the undo logic.
clientmethod deleteTable() [ Language = javascript ]
User clicked the Delete button for a table.
clientmethod doExport(filename) [ Language = javascript ]
Actually perform the export to the specified file.
clientmethod doImport(filename) [ Language = javascript ]
Import
clientmethod doImportLegacy(filename) [ Language = javascript ]
Import legacy
clientmethod drawTableDetails() [ Language = javascript ]
Render the contents of the detail table.
clientmethod exportTable() [ Language = javascript ]
Launch a dialog so the user can choose a file to export the current lookup table to.
clientmethod getClientModel() [ Language = javascript ]
Get the JSON model on the client.
clientmethod getCurrentExtension() [ Language = javascript ]
Return the extension used by Studio for the class/object
clientmethod getCurrentName() [ Language = javascript ]
Return the current name of the class/object being modified
clientmethod getTableObject() [ Language = javascript ]
Get the main table Javascript object.
clientmethod getTableValues() [ Language = javascript ]
Get the list of lookup values.
clientmethod importTable() [ Language = javascript ]
Launch a dialog so the user can choose a file to import a lookup table from.
clientmethod importTableLegacy() [ Language = javascript ]
Launch a dialog so the user can choose a file to import a lookup table from, in legacy format (exported from an older version).
clientmethod invokeAfterUserAction(input, userContext) [ Language = javascript ]
Client-side coordinator of calls to the AfterUserAction callback in
the core source control class.
clientmethod loadDetails(loadFromServer) [ Language = javascript ]
Initialise the table rendering of the page.
clientmethod modSort(a, b) [ Language = javascript ]
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
clientmethod newTable() [ Language = javascript ]
Prompt the user for the name of a new table to edit.
clientmethod onPopupAction(popupName, action, value) [ Language = javascript ]
Handle various dialogs.
clientmethod onlayoutHandler(load) [ Language = javascript ]
This client event is fired when the page is resized.
clientmethod openTable() [ Language = javascript ]
Launch a dialog to choose a different table to open.
clientmethod removeRow(row, addBack) [ Language = javascript ]
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.
clientmethod renameSave(newName) [ Language = javascript ]
clientmethod renderRow(html, pos, index, values) [ Language = javascript ]
Add the HTML for a row in position pos using the data from position index
in the list of values.
clientmethod saveTable() [ Language = javascript ]
Save the current lookup table.
clientmethod saveTableAs() [ Language = javascript ]
Launch popup window to begin 'save as' process
clientmethod selectRow(row) [ Language = javascript ]
User selected a row in the lookup table.
clientmethod setReadOnly(readOnly) [ Language = javascript ]
Inherited description: Set readOnly to 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.
clientmethod toggleButton(zenId, enable) [ Language = javascript ]
Toggle whether the button with Id zenId is enabled or disabled.
clientmethod toggleFormButtons(enable) [ Language = javascript ]
Helper method to ensure that the two buttons in the right hand side of the page
are toggled together.
clientmethod toggleUndoIcon(show) [ Language = javascript ]
Toggle whether the undo icon should be shown or not.
clientmethod undo() [ Language = javascript ]
If the current action can be undone, do so.
clientmethod updateDocumentState(alertOnReadOnly) [ Language = javascript ]
Helper method to ensure that documentTimestamp and
readOnly are up to date on the client.
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- HelpAddress
- ISREADONLY
- LocatorHeader
- ParentURL
- StdTitle
- aboutPage
- align
- aux
- backgroundTimerInterval
- canEdit
- cellAlign
- cellSize
- cellStyle
- cellVAlign
- children
- composite
- containerStyle
- cssLevel
- currSortMode
- currStep
- currViewMode
- currentNamespace
- currentProject
- currentUser
- disabled
- dragAndDrop
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- groupClass
- groupStyle
- hasSCOutput
- height
- hidden
- hint
- hintClass
- hintStyle
- home
- homePage
- id
- index
- keepAliveInterval
- label
- labelClass
- labelDisabledClass
- labelPosition
- labelStyle
- layout
- lblTitle
- limitPopups
- msgNotPermitted
- name
- needProject
- onafterdrag
- onbeforedrag
- onclick
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- pageModified
- parent
- readOnly
- readOnlyReason
- renamed
- searchKey
- showLabel
- slice
- sourceControlEnabled
- sourceControlManagerDialog
- sourceControlNewlineFormat
- sourceControlOutputDialog
- sourceControlVisible
- studioMode
- tipCSVWizard
- tipCompile
- tipContractAll
- tipExpandAll
- tipGen
- title
- tuple
- useSVG
- useSoftModals
- valign
- visible
- width
- window
- zenPersistentPopup
Inherited Methods
- %AddCSPShareHyperevents()
- %AddChild()
- %AddChildAfter()
- %AddChildBefore()
- %AddComponent()
- %AddEnsExceptionHandler()
- %AddImportedComponents()
- %AddLocatorLinks()
- %AddToSaveSet()
- %ApplyURLParms()
- %Attr()
- %BindExport()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawAutoLogout()
- %DrawClassDefinitions()
- %DrawComponentHTML()
- %DrawHTML()
- %DrawHTMLPage()
- %DrawJSStrings()
- %DrawObjectDefinitions()
- %DrawSourceControlCommands()
- %DrawSourceControlHead()
- %DrawSourceControlJS()
- %DrawSourceControlStyle()
- %EnclosingDivId()
- %EndBackgroundMethod()
- %EndScript()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetChildIndex()
- %GetComponent()
- %GetComponentById()
- %GetComponentByName()
- %GetEventHandlers()
- %GetHomePage()
- %GetHomeParam()
- %GetLinks()
- %GetLocatorLinks()
- %GetPageName()
- %GetParameter()
- %GetProductName()
- %GetValueById()
- %GetValueByName()
- %GetXMLName()
- %IsA()
- %IsModified()
- %Link()
- %LinkCSS()
- %LinkScript()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnBeforeCreatePage()
- %OnCreateApplication()
- %OnCreatePage()
- %OnDetermineCSSLevel()
- %OnDrawEnclosingDiv()
- %OnDrawHTMLBody()
- %OnDrawHTMLHead()
- %OnDrawHTMLMeta()
- %OnDrawObjectProperties()
- %OnFinishBackgroundTask()
- %OnGetProductName()
- %OnGetSmallMenu()
- %OnMonitorBackgroundTask()
- %OnMutateChildren()
- %OnObjectSynch()
- %OnPreHTTP()
- %OnSubmit()
- %OnUseSoftModals()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %Register()
- %RemoveChild()
- %RemoveChildren()
- %RemoveComponent()
- %RemoveFromSaveSet()
- %RunBackgroundMethod()
- %Self()
- %SerializeObject()
- %SetBackgroundMethodStatus()
- %SetErrorById()
- %SetErrorByName()
- %SetModified()
- %SetValueById()
- %SetValueByName()
- %SetValuesByName()
- %StartScript()
- %ValidateObject()
- %ZENVersion()
- AfterUserAction()
- AppendSourceControlOutput()
- BuildMenu()
- CheckAllBlanks()
- CheckContextLinks()
- CheckEnterpriseManager()
- ClearSourceControlOutput()
- ConvertParameter()
- CreateProject()
- CreateSourceControl()
- Decrypt()
- DoLogout()
- DocumentLoad()
- DocumentSave()
- DrawLocator()
- DrawRibbon()
- DrawTitle()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- EvalResult()
- GetCSPURL()
- GetContextLinks()
- GetCurrentProject()
- GetDocPage()
- GetFullProjectName()
- GetHomePage()
- GetNewURL()
- GetQuickLinks()
- GetSourceControlClass()
- GetSourceControlCommands()
- GetTimestamp()
- HaveSourceControlOutput()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsDocReadOnly()
- IsEnabled()
- IsPrivate()
- IsProjectRequired()
- IsSourceControlReadOnly()
- Link()
- LoadProject()
- OnHTTPHeader()
- OnPage()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHTTP()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RegisterRecent()
- RewriteURL()
- SetCurrentProject()
- SetProjectRequired()
- ShowError()
- SimpleKeepAlive()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- UpdateSCMenus()
- UserAction()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- addChild()
- addChildAfter()
- addChildBefore()
- addPopupSuffix()
- appendServerOutput()
- arrowClick()
- canUserModify()
- cancelPopup()
- changePassword()
- changeURLNamespace()
- checkEdit()
- checkStudioHyperEvents()
- checkTextControls()
- childrenMutated()
- chooseSCProject()
- clearSCOutput()
- clientKeepAlive()
- correctIELayering()
- createComponent()
- createComponentNS()
- createSCMenuItem()
- createSCProject()
- createSCSubMenu()
- deleteComponent()
- disableCommandButton()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- enableCommandButton()
- endModal()
- escapeCData()
- exposeComponent()
- findElement()
- fireOnResizeEvent()
- fireOnUnloadEvent()
- fireOnUpdateEvent()
- firePopupAction()
- fixDocumentTitle()
- getChildIndex()
- getComponent()
- getComponentById()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getIsReadOnly()
- getLabelElement()
- getOpener()
- getProperty()
- getReadOnlyReason()
- getSaveAction()
- getSettings()
- getTitleAreaHeight()
- getType()
- goHome()
- goMenu()
- gotoNamespace()
- gotoPage()
- grayOutButtons()
- hideCommandButton()
- inResizeLoop()
- initPopupSuffix()
- initializeSourceControl()
- initializeTextMonitor()
- invokeSourceControl()
- invokeSuper()
- isOfType()
- launchPopupWindow()
- loadDocument()
- logout()
- makeId()
- navigate()
- onCreate()
- onDelete()
- onDisplayHandler()
- onDocumentLoad()
- onDocumentLoadComplete()
- onDocumentSave()
- onDocumentSaveComplete()
- onEndModalHandler()
- onRefreshContents()
- onSerialize()
- onServerMethodCall()
- onServerMethodError()
- onServerMethodReturn()
- onStartModalHandler()
- ondisabledHandler()
- onkeydownHandler()
- onkeyupHandler()
- onloadHandler()
- onlogoutHandler()
- onoverlayHandler()
- onresizeHandler()
- onunloadHandler()
- onupdateHandler()
- popupActionHandler()
- raiseEvent()
- refreshContents()
- reloadDocument()
- removeChild()
- removePopupSuffix()
- render()
- renderContents()
- renderSVG()
- saveDocument()
- searchBlur()
- searchBoxHandler()
- searchFocus()
- searchKeyDown()
- searchKeyPress()
- setComponentId()
- setConnectivityStatusMsg()
- setHidden()
- setModified()
- setOverlayMode()
- setPageTitle()
- setProperty()
- setPropertyAll()
- setResultsDiv()
- setSCProject()
- setSortMode()
- setSortModeHandler()
- setTraceOption()
- setViewMode()
- setViewModeHandler()
- showAbout()
- showCommandButton()
- showDocumentation()
- showHelp()
- showSCMenu()
- showSCOutput()
- startKeepAlive()
- startModal()
- startProgressBar()
- stopKeepAlive()
- stopProgressBar()
- switchNamespace()
- textControlKeyDown()
- textControlKeyUp()
- toggleReadOnly()
- toggleSVGElements()
- updateSCIndicator()