Skip to main content

%DeepSee.UI.Dialog.PivotEditRule

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

This dialog adds (or edits) a new formatting rule definition to a DeepSee pivot.

Parameters

APPLYBUTTON

Parameter APPLYBUTTON = 0;

Properties

ruleNumber

Property ruleNumber As %ZEN.Datatype.string(ZENURL = "NUMBER");

Index of rule within parent dialog list or "" for new.

cellIcon

Property cellIcon As %ZEN.Datatype.string(ZENURL = "ICON");

Name of icon in effect. Names starting with "@" are user-defined names from the user icon list.

sampleIcon

Property sampleIcon As %ZEN.Datatype.string;

Url of current icon.

range

Property range As %ZEN.Datatype.string(ZENURL = "RANGE");

Range of cells for which this rule applies.

operator

Property operator As %ZEN.Datatype.string(ZENURL = "OPERATOR");

Condition operator.

value

Property value As %ZEN.Datatype.csv(ZENURL = "VALUE");

Value (or values) to test. For IN and BETWEEN this is a comma-delimited list.

style

Property style As %ZEN.Datatype.style(ZENURL = "STYLE");

CSS style to apply to cells that match this condition.

text

Property text As %ZEN.Datatype.string(ZENURL = "TEXT");

If defined, replace value with this text.

icon

Property icon As %ZEN.Datatype.uri(ZENURL = "ICON");

Icon.

iconCount

Property iconCount As %ZEN.Datatype.integer(ZENURL = "ICONCOUNT");

Icon count.

XDatas

Style

XData Style

dialogBody

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

Contents of the dialog body.

Methods

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

DrawCellIcons

Method DrawCellIcons(pSeed As %String) As %Status

Draw contents of cell icon box.

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.

ondialogStart

ClientMethod ondialogStart() [ Language = javascript ]

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

updateSample

ClientMethod updateSample() [ Language = javascript ]

Update the sample.

%OnAfterCreatePage

Method %OnAfterCreatePage() As %Status

selectIcon

ClientMethod selectIcon(type, href) [ Language = javascript ]

Click on a new cell icon.

clearRange

ClientMethod clearRange() [ Language = javascript ]

Click on clear range button.

updateOperator

ClientMethod updateOperator(type) [ Language = javascript ]

Click on a new operator value.