Skip to main content

%CSP.UI.Portal.DatabaseTruncate

class %CSP.UI.Portal.DatabaseTruncate extends %CSP.UI.Portal.Template

Zen page for System Management Portal - Databases Truncate

Property Inventory

Method Inventory

Parameters

parameter AUTONS = 0;
Do not switch namespace for this page: it needs to stay in %SYS
parameter CSPURL = /csp/sys/op/%CSP.UI.Portal.DatabaseTruncate.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 HELPADDRESS = Home,Databases,Database Info,Truncate;
Inherited description: Each SMP page should set this link which points to the documentation anchor name.
parameter PAGENAME = Cleanup;
Displayed name of this page.
parameter PARENTPAGE = /csp/sys/op/%CSP.UI.Portal.DatabaseDetails.zen;
Inherited description: This parameter defines the parent page for this page.
If the name ends in .csp, then the parent is assumed to be an autopage-enabled CSP page.
If the name ends in .cls, then the parent is assumed to be a Zen page.
This is used to automate the construction of the locator bar for this page and to build the index between portal pages and documentation.
The %GetLocatorInfo method is used to get this information.
parameter RECENT = 0;
Inherited description: If true, register visits to this page in the recent list.
parameter RESOURCE = %Admin_Operate;
Security requirement

Properties

property DBName as %String (ZENURL = "DBName");
ID for edit. DBName for this page.
Property methods: DBNameDisplayToLogical(), DBNameGet(), DBNameIsValid(), DBNameLogicalToDisplay(), DBNameLogicalToOdbc(), DBNameNormalize(), DBNameSet()
property Directory as %String (ZENURL = "Directory");
DBDirectory passed in.
Property methods: DirectoryDisplayToLogical(), DirectoryGet(), DirectoryIsValid(), DirectoryLogicalToDisplay(), DirectoryLogicalToOdbc(), DirectoryNormalize(), DirectorySet()
property Size as %String;
Current size.
Property methods: SizeDisplayToLogical(), SizeGet(), SizeIsValid(), SizeLogicalToDisplay(), SizeLogicalToOdbc(), SizeNormalize(), SizeSet()

Methods

Return the array of links to show in the locator bar.
pLink(n)=$LB(caption,link)
method %OnAfterCreatePage() as %Status
Inherited description: Be sure to do ##super() when overriding.
method %OnGetPageName() as %String
Inherited description: Get the (localized) name of the page. This should be implemented in a subclass.
method %OnGetTitle() as %String
Get the (localized) title string for the page.
method DrawAbortError(seed As %String) as %Status
classmethod GetSize(Directory As %String, Output Size As %Integer) as %String
Return current size since the size may have changed since the table was drawn
classmethod StartCleanup(DBName, Directory, Target) as %ZEN.proxyObject [ ZenMethod ]
Start background job to cleanup a selected directory
clientmethod doCancel() [ Language = javascript ]
This method resets the modified indicator and return user to the parent page.
clientmethod doFinish(isFinish) [ Language = javascript ]
User clicked "OK" to cleanup. Call server method to job off in the background.
clientmethod validate(size, target) as %Boolean [ Language = javascript ]
Make sure that the Target size is smaller than that of the current size.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab