class %CSP.Portal.SourceControl.Dialog.ServerOutput
extends %ZEN.Dialog.standardDialog
Helper dialog to display the server-side output from Source Control classes.
This class should only be opened from a class which extends %CSP.Portal.SourceControl.Base.
Note that any changes to this class should also be propagated to EnsPortal.Dialog.SourceControlOutput.
This is a Zen Page class.
parameter APPLYBUTTON = 0;
If true, then this dialog displays an Apply button.
parameter CANCELBUTTON = 0;
If true, then this dialog displays a Cancel button.
property isNotZenPopup
as %ZEN.Datatype.string(ZENURL="NOTZENPOPUP");
Flag to avoid certain Zen behaviours regarding the closing of the popup.
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 ClearSCOutput()
as %Integer
[ ZenMethod ]
Remove the output data from the session.
method DrawButtons(pSeed As %String)
as %Status
Draw the clear and refresh buttons.
method DrawOutput(pSeed As %String)
as %Status
Write out the contents of the current session's output.
If there is no data, write out a non-breaking space for display purposes.
method clearOutput()
[ Language = javascript ]
clear output from the session and update the display.
Note that this method is copied in the Interoperability subclass, so any changes
also need to be implemented there as well.
method dialogFinish()
[ Language = javascript ]
Override the handling of firePopupAction for the
default case where the popup has not been launched using zenLaunchPopupWindow().
method getDialogValue()
[ Language = javascript ]
This dialog doesn't return a value.
method ondialogFinish(action)
[ Language = javascript ]
Close the window and update the parent when the user is finished with the page.
method onloadHandler()
[ Language = javascript ]
Ensure that we refresh the output (and thus update the parent flag)
whenever the user comes back to the popup.
method onunloadHandler()
[ Language = javascript ]
Ensure that the parent page knows when this page gets closed.
method refreshOutput(array)
[ Language = javascript ]
Refresh the output based on the data supplied in array or from the server.
This method also hides the new output indicator on the source page.
Note that this method is copied in the Interoperability subclass, so any changes
also need to be implemented there as well.