Salesforce

How Do I Identify a Repetitive Call to a Single Instance Program? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Identify a Repetitive Call to a Single Instance Program? (Magic xpa 3.x)

The first time a Single instance program is called, it creates a new context and starts. Task Prefix is executed.

The second time a Single instance program is called, the existing instance is used. Focus shifts, but Task Prefix is not executed.

Therefore, you need another way to trap the fact that this program was re-called.

Fortunately, there is an easy way to do this. There is an Internal event called Program Recall. This is only executed if the Single instance program is re-entered (the first time it is entered, you can use Task Prefix).

See also

The Online Samples project (program MT10)

Reference
Attachment 
Attachment