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.

Triggers Available in Dynamic Server Pages

Level

Available for Server Pages

Component

operation exec
trigger receiveMessage
trigger preActivate
trigger postActivate

Entity

trigger delete
trigger deleteUp
trigger lock
trigger error
trigger preDeserialize
trigger postDeserialize
trigger preSerialize
trigger postSerialize
trigger read
trigger write
trigger writeUp
trigger validateKey
trigger validate

Field

trigger detail
trigger formatToDisplay
trigger formatFromDisplay
trigger formatToDbms
trigger formatFromDbms
trigger error
trigger validate

Client-Side Triggers for Errors

The following web triggers are used for error reporting and styling.

Error Reporting and Clearing Triggers
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.

Interactive DSP Triggers per Widget

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

 

Related Topics