Skip to main content

%DeepSee.UI.Dialog.RangeExpression

Class %DeepSee.UI.Dialog.RangeExpression Extends %DeepSee.UI.Dialog.standardDialog [ System = 4 ]

This dialog lets the user add or edit Range Expression for level definition.

Parameters

APPLYBUTTON

Parameter APPLYBUTTON = 0;

Properties

cubeName

Property cubeName As %ZEN.Datatype.string(ZENURL = "CUBE");

Cube name.

levelName

Property levelName As %ZEN.Datatype.string(ZENURL = "ELEMENT");

rangeExpression

Property rangeExpression As %ZEN.Datatype.string(ZENURL = "VALUE");

itemNumber

Property itemNumber As %ZEN.Datatype.integer [ InitialExpression = "1" ];

msgHasEmpty

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?")} ];

msgHasNan

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.")} ];

msgReset

Property msgReset As %ZEN.Datatype.caption [ InitialExpression = {$$$TextJS("This will discard all changes and reload the form. Proceed?")} ];

titleBtnE

Property titleBtnE As %ZEN.Datatype.caption [ InitialExpression = {$$$Text("Exclusive. Click to change to Inclusive.")} ];

titleBtnI

Property titleBtnI As %ZEN.Datatype.caption [ InitialExpression = {$$$Text("Inclusive. Click to change to Exclusive.")} ];

XDatas

Style

XData Style

dialogBody

XData dialogBody [ XMLNamespace = "http://www.intersystems.com/zen" ]

Contents of the dialog body.

Methods

changeForm

ClientMethod 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.

addItem

ClientMethod 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.

resetForm

ClientMethod resetForm() [ Language = javascript ]

Discard whatever user entered and reload form

btnChange

ClientMethod btnChange(itemId) [ Language = javascript ]

clearItem

ClientMethod clearItem(itemNumber) [ Language = javascript ]

%OnGetTitle

Method %OnGetTitle() As %String

Get the (localized) title string for the dialog. This should be implemented in a subclass.

%OnGetSubtitle

Method %OnGetSubtitle() As %String

Get the (localized) subtitle string for the dialog. This should be implemented in a subclass.

getDialogValue

ClientMethod getDialogValue() [ Language = javascript ]

ondialogFinish

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.

validateKey

ClientMethod validateKey(string) [ Language = javascript ]

ondialogStart

ClientMethod ondialogStart() [ Language = javascript ]

This callback, if defined, is called when the dialog page is loaded.

%OnAfterCreatePage

Method %OnAfterCreatePage() As %Status