class %DeepSee.UI.Dialog.CubeBuild
extends %DeepSee.UI.Dialog.standardDialog
This dialog builds facts and indices for a DeepSee cube and displays the output.
!!! % complete, view log file, show errors, make non-modal!!!
This is a Zen Page class.
parameter APPLYBUTTON = 0;
If true, then this dialog displays an Apply button.
property TempMaxFacts
as %ZEN.Datatype.string;
The maximum number of records to be built for the the selected cube in this session (overrides maxFacts)
property cubeClass
as %ZEN.Datatype.string(ZENURL="CLASS");
Cube class name.
property cubeName
as %ZEN.Datatype.string(ZENURL="CUBE");
Cube name.
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.
property maxFacts
as %ZEN.Datatype.string(ZENURL="maxFacts");
The maximum number of records for be built defined for the selected cube
property trackingId
as %ZEN.Datatype.string;
Id used to track progress.
method %OnAfterCreatePage()
as %Status
Be sure to do ##super() when overriding.
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 %SetCheckLists(pDefaultSelected=0)
as %Status
Fill in the details of the update checklists based on the current cube definition.
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.
classmethod CheckStatus(pCubeName As %String)
as %String
[ ZenMethod ]
Get the current status of the background task.
classmethod FormatPrevBuild(pCubeName As %String)
as %String
[ ZenMethod ]
Formats the date and time for the previous build
method changeDimSelection()
[ Language = javascript ]
Look at the current selection and make sure the Build button is only enabled if something is selected.
method getDialogValue()
[ Language = javascript ]
Get the value that will be applied when the user presses the OK button.
This is implemented by subclasses.
method getFactList()
[ Language = javascript ]
Pull the values from the checklists to assemble a factList selection.
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 setAllCheckLists(value)
[ Language = javascript ]
Set every checkBox in the checkLists to value.
method setDimSelectionDisabled(value)
[ Language = javascript ]
Set the disable value for all build selection controls in the dialog.
method startBuild()
[ Language = javascript ]
Start the index build.
method toggleDimSelection(setting)
[ Language = javascript ]
Toggle the display of the fact checklists.
method updateStatus()
[ Language = javascript ]
Update the status area.