class %DeepSee.UI.Dialog.RangeExpression
extends %DeepSee.UI.Dialog.standardDialog
This dialog lets the user add or edit Range Expression for level definition.
This is a Zen Page class.
parameter APPLYBUTTON = 0;
If true, then this dialog displays an Apply button.
property cubeName
as %ZEN.Datatype.string(ZENURL="CUBE");
Cube name.
property itemNumber
as %ZEN.Datatype.integer [ InitialExpression = "1" ];
property levelName
as %ZEN.Datatype.string(ZENURL="ELEMENT");
property msgHasEmpty
as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("There is at least one empty 'Replacement Value'. Replacement without a value will not be saved. Proceed?") ];
property msgHasNan
as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("There is at least one value that is not numeric where it should be. Please correct and try again.") ];
property msgReset
as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("This will discard all changes and reload the form. Proceed?") ];
property rangeExpression
as %ZEN.Datatype.string(ZENURL="VALUE");
property titleBtnE
as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Exclusive. Click to change to Inclusive.") ];
property titleBtnI
as %ZEN.Datatype.caption [ InitialExpression = $$$Text("Inclusive. Click to change to Exclusive.") ];
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 addItem()
[ Language = javascript ]
Add a new row.
formType = 0 means user selected "Strings" to be the form of original values.
formType = 1 means user selected "Numeric ranges" to be the form of original values.
method btnChange(itemId)
[ Language = javascript ]
method changeForm(value)
[ Language = javascript ]
User changed the form of original values (this is only available if user has not "Added" any new item.
Convert what's been defined to the new form.
method clearItem(itemNumber)
[ Language = javascript ]
method getDialogValue()
[ Language = javascript ]
Get the value that will be applied when the user presses the OK button.
This is implemented by subclasses.
method 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.
method ondialogStart()
[ Language = javascript ]
This callback, if defined, is called when the dialog page is loaded.
method resetForm()
[ Language = javascript ]
Discard whatever user entered and reload form