Skip to main content

%CSP.UI.Portal.Dialog.MirrorDBActions

class %CSP.UI.Portal.Dialog.MirrorDBActions extends %CSP.Portal.standardDialog

Actions for Mirrored Databases: Mount, Activate, Catchup, Remove.

Property Inventory

Method Inventory

Parameters

parameter APPLICATION = %CSP.UI.Portal.Application;
Class name of application this page belongs to.
parameter APPLYBUTTON = 0;
If true, then this dialog displays an Apply button.
parameter CSPURL = /csp/sys/op/%CSP.UI.Portal.Dialog.MirrorDBActions.zen;
Inherited description: This parameter is used to make sure that if multiple CSP applications are mapped to the same namespace that the CSP engine can correctly identify which class corresponds with which URL. If 'LockCSPName' is true (the default, defined in the CSP application) then you can only access this page if the url exactly matches this 'CSPURL'. You can set this parameter to "" if you wish to disable this check for this class. This check is applied for all CSP urls (cls/csp/zen).
If this page was compiled from a .csp file, then this parameter is automatically set to contain the url of this file used for compilation.
parameter DOMAIN = %Utility;
Domain used for localization.
parameter PAGENAME = Actions for Mirrored DB;
Displayed name of this page.
parameter RESOURCE = %Admin_Operate;
Security requirement

Properties

property Action as %ZEN.Datatype.string (ZENURL = "Action");
"M" - Mount, "A" - Activate, "C" - Catchup, "R" - Remove
Property methods: ActionDisplayToLogical(), ActionGet(), ActionIsValid(), ActionLogicalToDisplay(), ActionLogicalToOdbc(), ActionNormalize(), ActionSet()
property IsPrimary as %Integer [ InitialExpression = $SYSTEM.Mirror.IsPrimary() ];
Property methods: IsPrimaryDisplayToLogical(), IsPrimaryGet(), IsPrimaryIsValid(), IsPrimaryLogicalToDisplay(), IsPrimaryNormalize(), IsPrimarySet(), IsPrimaryXSDToLogical()
property NumDBs as %Integer [ InitialExpression = 0 ];
Number of DBs currently selected
Property methods: NumDBsDisplayToLogical(), NumDBsGet(), NumDBsIsValid(), NumDBsLogicalToDisplay(), NumDBsNormalize(), NumDBsSet(), NumDBsXSDToLogical()
property SelectedMirror as %ZEN.Datatype.string (ZENURL = "SelectedMirror");
Property methods: SelectedMirrorDisplayToLogical(), SelectedMirrorGet(), SelectedMirrorIsValid(), SelectedMirrorLogicalToDisplay(), SelectedMirrorLogicalToOdbc(), SelectedMirrorNormalize(), SelectedMirrorSet()

Methods

method %OnAfterCreatePage() as %Status
This callback is called after the server-side page object and all of its children are created.
Subclasses can override this to add, remove, or modify items within the page object model, or to provide values for controls.
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 DrawMirrorStatus(pTable As %ZEN.Component.tablePane, pName As %String, pSeed As %String) as %Status
classmethod ReallyDoAction(pProxy As %ZEN.proxyObject) as %ZEN.proxyObject [ ZenMethod ]
clientmethod catchupChanged(newVal) [ Language = javascript ]
clientmethod doAction() as %Boolean [ Language = javascript ]
clientmethod getDialogValue() [ Language = javascript ]
Inherited description: Get the value that will be applied when the user presses the OK button. This is implemented by subclasses.
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.
clientmethod onloadHandler() [ Language = javascript ]
This client event, if present, is fired when the page is loaded.
clientmethod rowSelect(selectedRows) [ Language = javascript ]
enable the action button if there are DBs selected. disable otherwise.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab