onDialogExecute

IN THIS PAGE

Description

Fires every time the UX Component is run. This includes the first time it is run and whenever an Ajax callback is made.

Request 

The Request object. Includes Request.Variables, which should be used instead of the older e.rv construct

Session 

The Session object. Should be used instead of the older e.session construct

Inside e: 

e.tmpl

Component definition

e.rtc

Runtime calculations - you can use this to store data to be passed to other server side events (Note: the 'rtc' object cannot be used to persist state information - i.e. you can't set a value in rtc and then read that value in a subsequent callback. To persist state info see e._state).

e.arguments

SQL::Arguments object with values for each of the arguments defined in this component. To read a value from arguments: e.arguments.find("argumentName").data

To specify any javascript that you want to execute set the e.javascript property. For example:

e.javascript = "alert('hello');"

You can set 'state' variables in this event. The value of any state variables will be available in all subsequent ajax callbacks. To set a state variable:

e._state.myvar1 = "value1"
e._state.myvar2 = "value2"

To read the value of a 'state' variable that was previously set:

e._state.myvar1