Skip to main content


class %CSP.Portal.SourceControl.Dialog.Manager extends %CSP.Portal.Template

Wrapper class to correctly manage popups requested by Source Control hooks.

Property Inventory

Method Inventory


parameter PAGENAME = Source Control Dialog;
Inherited description: Displayed name of this page.


property %CSSLevel as %String;
Property to indicate whether a specific CSS Level should be used for the page. By default, we will attempt to use CSS Level 3 if we can detect the browser supports HTML 5. The value can be modified by implementing the GetPortalPageOptions() callback defined in %Studio.SourceControl.Base.
Property methods: %CSSLevelDisplayToLogical(), %CSSLevelGet(), %CSSLevelIsValid(), %CSSLevelLogicalToDisplay(), %CSSLevelLogicalToOdbc(), %CSSLevelNormalize(), %CSSLevelSet()
property targetURL as %String);
Property methods: targetURLDisplayToLogical(), targetURLGet(), targetURLIsValid(), targetURLLogicalToDisplay(), targetURLLogicalToOdbc(), targetURLNormalize(), targetURLSet()


method %OnAfterCreatePage() as %Status
Point the iframe at the URL specified in targetURL.
method %OnDetermineCSSLevel() as %Integer
If the source control hooks a specific CSS level is specified in %CSSLevel, return the value, otherwise use the default for the portal.
method %OnDrawHTMLMeta() as %Status
Inherited description: This callback is called at the start of the HTML HEAD section of the page (just after the title).
It allows a page to write out meta tags, if desired. The default implementation writes out an IE-specific meta tag to ensure that IE 9 and 10 don't fall back into Compatibility Mode when we are returning an HTML5 page (i.e. cssLevel is set to 3).
method CheckExtends(pCls As %String, pSuper As %String) as %Boolean [ ZenMethod ]
clientmethod addCompletionCheck(checkFunc, time) [ Language = javascript ]
Adds a JS Interval which executes the supplied function at the supplied interval.
clientmethod checkCompletion() [ Language = javascript ]
Check whether the contents of the iframe have been completely loaded, and close the window if it's a Studio template, otherwise add the source control specific onbeforeunload event handling.
clientmethod clearCompletionChecks() [ Language = javascript ]
Remove any intervals created while waiting for source control frames to load. Primarily used to check on the status of the popup.
clientmethod initializeFrame(newSrc) [ Language = javascript ]
Code to resize the iframe based on the window size and check whether a title
clientmethod onlayoutHandler(load) [ Language = javascript ]
Inherited description: This client event, if present, is fired when the page is first loaded or whenever it is resized.
If this is called at load time, then load will be true.
clientmethod onunloadHandler() [ Language = javascript ]
Inherited description: This client event, if present, is fired when the page is unloaded. If this method returns a string value, then that is used as the return value of the HTML page's onbeforeunload handler (if more than one component returns a string, the first one encountered is used).
clientmethod updateTitle() [ Language = javascript ]
Update the title of the main window based on the title of the inner iframe.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab