Salesforce

How Do I Force Immediate Handling for Events? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Force Immediate Handling for Events? (Magic xpa 4.x)

If you want an event to be handled immediately, set the Wait property to Yes. Wait=Yes causes the event to be handled immediately, without processing other commands. This is called synchronous processing, because the commands are handled in order.

For example, here we raise four events:

  • Event A is raised, with Wait=No. Event A is put in the queue, but not executed. The next command is processed.

  • Event B is raised, with Wait=No. Event B is put in the queue, but not executed. The next command is processed.

  • Event C is raised, with Wait=Yes. Event C is immediately executed, without reading the next command.

  • Event D is raised, with Wait=No. Event B is put in the queue, but not executed. The next command is processed.

  • The next command is a Verify box that displays E. It is immediately executed.

  • Then the queued events, A, B, and D, are executed.

The user will see the verify boxes in the following order: C, E, A, B, D.

See also

The Online and Rich Client Samples projects (program EH07 and REH07)

Reference
Attachment 
Attachment