Salesforce

Main Program Access and Usage (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Main Program Access and Usage (Magic xpa 2.x)

The Main Program is implicitly executed when:

  • A user, after opening a project in Development mode, switches to Runtime.

  • Running a program in Development mode using either the Execute Program action from the Program repository, or the Generate Program action from the Task Editor. In either case, the Main Program will run before the current program.

The Main Program is used for any or all of the following:

  • As a controlling mechanism through a project’s Task Prefix and Suffix, the Main Program determines the start and end of project handlers.

  • Setting and maintaining global variables throughout a project.

  • By defining global event handlers, the Main Program fashions a generic handling for projects.

  • By controlling global events, the Main Program sets user-defined events.

Reference
Attachment 
Attachment