Skip to main content

%DeepSee.UI.Dialog.RepairBuild

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

This extends the build dialog to build the set of dependent cubes needed to "Repair" a given cube's integrity

Parameters

APPLYBUTTON

Parameter APPLYBUTTON = 0;

Properties

cubeList

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

Cube name.

group

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

Group Name, for repair and group modes we can use "pseudo group" 1

mode

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.

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

%LockWithError

ClassMethod %LockWithError(pError) As %Status

Lock the Build List button and display an error indicating there is a problem.

startBuild

ClientMethod startBuild() [ Language = javascript ]

Start the index build.

RepairBuild

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.

BuildOneRegisteredGroup

ClassMethod BuildOneRegisteredGroup(pGroupName As %String) As %String [ ZenMethod ]

BuildAllRegisteredGroups

ClassMethod BuildAllRegisteredGroups() As %String [ ZenMethod ]

CheckCompletedStatus

ClassMethod CheckCompletedStatus(pTrackingId As %String, pCubeName As %String) As %String [ ZenMethod ]

Get the current status of the background task.

updateStatus

ClientMethod updateStatus(cubeName, final) [ Language = javascript ]

Update the status area.

cleanup

ClientMethod cleanup() [ Language = javascript ]

ClearTracking

ClassMethod ClearTracking(pTrackingId As %String) [ ZenMethod ]