class %DeepSee.UI.Dialog.RepairBuild
extends %DeepSee.UI.Dialog.standardDialog
This extends the build dialog to build the set of dependent cubes
needed to "Repair" a given cube's integrity
This is a Zen Page class.
parameter APPLYBUTTON = 0;
If true, then this dialog displays an Apply button.
property cubeList
as %ZEN.Datatype.string(ZENURL="CUBELIST");
Cube name.
property group
as %ZEN.Datatype.string(ZENURL="GROUP");
Group Name, for repair and group modes we can use
"pseudo group" 1
property mode
as %ZEN.Datatype.string(ZENURL="MODE");
Mode options are:
all - Initiate a full build of all groups in the registry
group - Inititate a full build of a single group in the registry
repair - Inititate a build of a single cube, along with the minimal set of cubes dependent upon it.
property trackingId
as %ZEN.Datatype.string;
Id used to track progress.
classmethod %LockWithError(pError)
as %Status
Lock the Build List button and display an error indicating there is a problem.
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.
classmethod BuildAllRegisteredGroups()
as %String
[ ZenMethod ]
classmethod BuildOneRegisteredGroup(pGroupName As %String)
as %String
[ ZenMethod ]
classmethod CheckCompletedStatus(pTrackingId As %String, pCubeName As %String)
as %String
[ ZenMethod ]
Get the current status of the background task.
classmethod ClearTracking(pTrackingId As %String)
[ ZenMethod ]
classmethod RepairBuild(pCubeName As %String)
as %String
[ ZenMethod ]
Start the repair build process in the background
Return the ID of the child process for tracking
Start the build cube process in the background.
Return the tracking id.
method cleanup()
[ 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 startBuild()
[ Language = javascript ]
Start the index build.
method updateStatus(cubeName, final)
[ Language = javascript ]
Update the status area.