What is the Order of the Code Execution within an XMDesigner Activity?

How Can We Help?

What is the Order of the Code Execution within an XMDesigner Activity?

< Back

Answer

In XMDesigner, the order of the activity’s code execution is set by index:

The code placed on the control with lower index executes first.

If the result of the one control’s code execution is used as a parameter in another control’s code, ensure the former control’s index is less than the latter control’s index.

An important factor to keep in mind while designing.

Just to add to the order of execution, the following sequence is followed for “OnLoad” and “OnRefresh”, in that order:

  1. OnLoad of Activity:
    • OnLoad of Entities with target to Activity
  2. For each control (Index minimum to maximum):
    • OnLoad of Control
    • Entities with target to Control
    • For each Control (Index minimum to maximum)
    • Expression of Control
  3. OnRefresh of Activity:
    • OnRefresh of Entities with target to Activity
    • For each Control (Index minimum to maximum)
    • OnRefresh of Control
    • Expression of Control
    • Entities with target to Control
Comments are closed.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X