Triggers in Dynamic Server Pages
Dynamic server pages (DSPs) have system triggers that are executed on the server, and a client-side web triggers that are executed in the browser.
Most client-side triggers are widget-specific interactive triggers, but some are used for error reporting and styling.
Server-Side Triggers
The following triggers can only be executed on the server and are implemented in ProcScript.
Level |
Available for Server Pages |
---|---|
Component |
|
Entity |
|
Field |
|
Client-Side Triggers for Errors
The following web triggers are used for error reporting and styling.
Level | Available for DSPs |
---|---|
Field | webtrigger showError |
webtrigger clearError | |
webtrigger onSyntaxError | |
webtrigger onSyntaxErrorResolved |
Interactive Triggers
Interactive triggers are widget-specific—many web widgets have a delete trigger, and some have triggers such as OnChange or OnEdit. The detail trigger can be defined as a server-side trigger, or as a client-side trigger (using webtrigger).
When defined with the webtrigger ProcScript instruction, interactive triggers are executed on the client and must be coded using JavaScript. When defined with the trigger ProcScript statement, they are executed on the server and must be coded in ProcScript. For more information, see Client-Side Triggers and Operations.
Interactive triggers can be explicitly invoked in ProcScript using the callfieldtrigger statement.
DSP Widget |
detail Trigger |
OnChange Trigger |
Other Triggers |
---|---|---|---|
AttributesOnly |
X |
X X |
OnBlur OnClick OnDoubleClick OnFocus OnKeyPress |
CheckBox |
X |
||
DatePicker |
X |
||
DropDownList |
X |
||
DSPContainer |
X |
||
EditBox |
X |
X |
OnEdit |
FlatButton |
X |
||
ListBox |
X |
||
PictureButton |
X |
|
|
Password |
X |
X |
|
Picture |
X |
||
RadioGroup |
X |
||
RawHtml |
X |
||
StaticText |
X |
||
TextArea |
X |
X |