serial class %CSP.Util.FormButton
extends %SerialObject, %XML.Adaptor
This class is used internally by Caché. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.
Defines a submit button for an AutoForm form.
parameter XMLNAME = "Button";
This parameter provides the default XMLNAME for the class. If it is
empty then the class name will be used to construct a default XML name.
The default XMLNAME is used as the top level tag
when exporting objects and the export context
did not provide an XML container name.
property Caption
as %String(MAXLEN=50,XMLNAME="caption",XMLPROJECTION="attribute");
Caption used for a form submit button (value attribute for the button)
property Confirm
as %String(MAXLEN=100,XMLNAME="confirm",XMLPROJECTION="attribute");
If present, then display this as a confirmation message for the button.
property HREF
as %String(MAXLEN=128,XMLNAME="href",XMLPROJECTION="attribute");
URL associated with this button (currently used for popup);
property Name
as %String(MAXLEN=30,XMLNAME="name",XMLPROJECTION="attribute");
Name used for a form submit button: e.g., $AUTOFORM_SAVE
property OnClick
as %String(MAXLEN=255,XMLNAME="onclick",XMLPROJECTION="attribute");
If defined, onclick behavior (JavaScript) for this button
property Type
as %String(VALUELIST=",popup",XMLNAME="type",XMLPROJECTION="attribute");
What type of action does this button do: submit (default), popup (show a popup).
method GenerateCode()
as %String
Utility method to generate code for this object