class %ZEN.Dialog.errorDialog
extends standardDialog
This is the error dialog page.
It displays an error message and a prompt which user can answer Yes or No.
If error details are available in %session.Data("Errors","Details") then they are displayed in a listbox.
To use this class:
- Set the following before calling this dialog:
- %session.Data("Errors","Messages",1) - Message title such as "WARNING".
- %session.Data("Errors","Messages",2) - Message line.
- %session.Data("Errors","Messages",3) - Prompt such as "Proceed?"
Example calling this dialog:
zenLaunchPopupWindow('%ZEN.Dialog.errorDialog.cls','errorDialog','resizable,width=780,height=280');
This is a Zen Page class.
parameter AUTONS = 0;
If true, auto-switch namespace to whatever $NAMESPACE is passed in.
parameter DOMAIN = "%ZEN";
Localization domain
parameter dialogTitle = "errorDialog";
method %OnAfterCreatePage()
as %Status
Load error message prompts set by the calling class.
Load error details. Hide list box if nothing.
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.
method adjustSize()
[ Language = javascript ]
Adjust size and position of components on this page.
method getDialogValue()
[ Language = javascript ]
Get the value that will be applied when the user presses the OK button.
This is implemented by subclasses.
method ondialogFinish(action)
[ 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.