Skip to main content

%DeepSee.UI.Dialog.CubeBuild

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

This dialog builds facts and indices for a DeepSee cube and displays the output. !!! % complete, view log file, show errors, make non-modal!!!

Parameters

APPLYBUTTON

Parameter APPLYBUTTON = 0;

Properties

cubeClass

Property cubeClass As %ZEN.Datatype.string(ZENURL = "CLASS");

Cube class name.

cubeName

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

Cube name.

maxFacts

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

The maximum number of records for be built defined for the selected cube

factsModifiedList

Property factsModifiedList As %ZEN.Datatype.string(ZENURL = "MODIFIED");

A list may be supplied to indicate that a known list of dimensions has been modified. This can be used to pre-set selected build lists.

TempMaxFacts

Property TempMaxFacts As %ZEN.Datatype.string;

The maximum number of records to be built for the the selected cube in this session (overrides maxFacts)

trackingId

Property trackingId As %ZEN.Datatype.string;

Id used to track progress.

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.

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.

%OnAfterCreatePage

Method %OnAfterCreatePage() As %Status

%SetCheckLists

Method %SetCheckLists(pDefaultSelected = 0) As %Status

Fill in the details of the update checklists based on the current cube definition.

startBuild

ClientMethod startBuild() [ Language = javascript ]

Start the index build.

BuildCube

ClassMethod BuildCube(pCubeName As %String, pTempMaxFacts As %Integer, pFactList As %String = "") As %String [ ZenMethod ]

Start the build cube process in the background. Return the tracking id.

CheckStatus

ClassMethod CheckStatus(pCubeName As %String) As %String [ ZenMethod ]

Get the current status of the background task.

FormatPrevBuild

ClassMethod FormatPrevBuild(pCubeName As %String) As %String [ ZenMethod ]

Formats the date and time for the previous build

updateStatus

ClientMethod updateStatus() [ Language = javascript ]

Update the status area.

toggleDimSelection

ClientMethod toggleDimSelection(setting) [ Language = javascript ]

Toggle the display of the fact checklists.

setDimSelectionDisabled

ClientMethod setDimSelectionDisabled(value) [ Language = javascript ]

Set the disable value for all build selection controls in the dialog.

getFactList

ClientMethod getFactList() [ Language = javascript ]

Pull the values from the checklists to assemble a factList selection.

setAllCheckLists

ClientMethod setAllCheckLists(value) [ Language = javascript ]

Set every checkBox in the checkLists to value.

changeDimSelection

ClientMethod changeDimSelection() [ Language = javascript ]

Look at the current selection and make sure the Build button is only enabled if something is selected.