Skip to main content

SchemaMap.Tool.UI.Lookup

class SchemaMap.Tool.UI.Lookup extends %ZEN.Dialog.standardDialog

Property Inventory

Method Inventory

Parameters

parameter APPLYBUTTON = 1;
Inherited description: If true, then this dialog displays an Apply button.
parameter CANCELBUTTON = 1;
Inherited description: If true, then this dialog displays a Cancel button.
parameter RESOURCE = %Ens_EDISchemaAnnotations:READ;
Inherited description: This is a comma-delimited list of system Resources and associated permissions. A user must hold the specified permissions on at least one of the specified resources in order to view this page or invoke any of its server-side methods from the client.
The format of each item in the list should be as follows:
Resource[:Permission]
Permission is optional, and defaults to USE if not supplied. If it is supplied, it should be one of USE, READ or WRITE.

Properties

property EditEnabled as %Boolean;
Property methods: EditEnabledDisplayToLogical(), EditEnabledGet(), EditEnabledIsValid(), EditEnabledLogicalToDisplay(), EditEnabledLogicalToXSD(), EditEnabledNormalize(), EditEnabledSet(), EditEnabledXSDToLogical()
property ForReference as %Boolean;
Property methods: ForReferenceDisplayToLogical(), ForReferenceGet(), ForReferenceIsValid(), ForReferenceLogicalToDisplay(), ForReferenceLogicalToXSD(), ForReferenceNormalize(), ForReferenceSet(), ForReferenceXSDToLogical()
property From as %String;
Property methods: FromDisplayToLogical(), FromGet(), FromIsValid(), FromLogicalToDisplay(), FromLogicalToOdbc(), FromNormalize(), FromSet()
property Pair as %String (ZENURL = "PAIR");
Property methods: PairDisplayToLogical(), PairGet(), PairIsValid(), PairLogicalToDisplay(), PairLogicalToOdbc(), PairNormalize(), PairSet()
property Source as %String (ZENURL = "SOURCE");
Property methods: SourceDisplayToLogical(), SourceGet(), SourceIsValid(), SourceLogicalToDisplay(), SourceLogicalToOdbc(), SourceNormalize(), SourceSet()
property Target as %String (ZENURL = "TARGET");
Property methods: TargetDisplayToLogical(), TargetGet(), TargetIsValid(), TargetLogicalToDisplay(), TargetLogicalToOdbc(), TargetNormalize(), TargetSet()
property To as %String;
Property methods: ToDisplayToLogical(), ToGet(), ToIsValid(), ToLogicalToDisplay(), ToLogicalToOdbc(), ToNormalize(), ToSet()

Methods

method %OnAfterCreatePage() as %Status
This callback is called after the server-side page object and all of its children are created.
Subclasses can override this to add, remove, or modify items within the page object model, or to provide values for controls.
method %OnGetSubtitle() as %String
Get the (localized) subtitle string for the dialog. This should be implemented in a subclass.
method %OnGetTitle() as %String
Get the (localized) title string for the dialog. This should be implemented in a subclass.
method DeleteCodeTable(fromTable As %String, toTable As %String) as %String [ ZenMethod ]
method DeleteCodeTableEntry(fromTable As %String, toTable As %String, fromCode As %String) as %String [ ZenMethod ]
method DrawCodeTable(seed As %String) as %Status
method NewCodeTable(fromTable As %String, toTable As %String) as %Status [ ZenMethod ]
method NewCodeTableEntry(fromTable As %String, toTable As %String, fromCode As %String, toCode As %String) as %String [ ZenMethod ]
clientmethod addCodeMapping(fromTable, toTable, fromCode, toCode, prompt) [ Language = javascript ]
Add this new code-to-code mapping to this lookup table. Arguments 1 and 2 give the data values of the from and to table names that are the nodes to modify. Arguments 3 and 4 give the HTML id values of the input fields that contain the new from and to code values to write to the new entry in the lookup table. The method derives the lookup table from and to nodes to write these code values to, by reading the current values in the select lists at the top of the form.
clientmethod addCodeTable(fromTable, toTable) [ Language = javascript ]
Add this new lookup table. The display is refreshed and it becomes the currently selected table. Arguments 1 and 2 give the HTML id values of the input fields that contain the new from and to table names to write as nodes in the new entry in the lookup table.
clientmethod changeToTable(fromTable, toTable) [ Language = javascript ]
When you select an option from the selectToTable list, the "New" fields (if visible) disappear and the code mapping display fields change to show the code-to-code mappings for the current selectFromTable and selectToTable choices.
clientmethod deleteCodeMapping(fromTable, toTable, fromCode) [ Language = javascript ]
Delete this code-to-code mapping from this lookup table. Arguments 1 and 2 give the data values of the from and to table names that are the nodes to modify. Argument 3 gives the data value of the from code in the pair to remove from the table.
clientmethod deleteLookupTable(fromTable, toTable, prompt) [ Language = javascript ]
Delete this lookup table and all of the code-to-code mappings it contains. Arguments 1 and 2 give the data values of the from and to table names that are the nodes to remove.
clientmethod enterKeyCode(event, inputFrom, inputTo) [ Language = javascript ]
clientmethod enterKeyTable(event) [ Language = javascript ]
clientmethod getDialogValue() [ Language = javascript ]
Inherited description: Get the value that will be applied when the user presses the OK button. This is implemented by subclasses.
clientmethod getInputValues() [ Language = javascript ]
clientmethod isDuplicateCode(fromCode) [ Language = javascript ]
clientmethod isDuplicateTable(fromTable, toTable) [ Language = javascript ]
clientmethod ondialogFinish(action) as %Boolean [ Language = javascript ]
This callback, if defined, is called when the user presses the OK or Apply action buttons. If this returns false, then the action is cancelled.
clientmethod strip(text) [ Language = javascript ]

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab