Salesforce

How Do I Share a Function Between Several Projects? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Share a Function Between Several Projects? (Magic xpa 4.x)

The availability of a given function is determined by the Scope property. If the Scope is Global, then the function will be visible for this task and all its children. This means that if the function is entered in the Main Program with a Scope of Global, then the function will be visible within the entire project. If the Scope is Global, it will also be visible within the host project.

Creating a global function

  1. Create your function in the Main Program.

  2. Click on the field after Scope: (or tab to it).

  3. Choose Global from the selection list.

Now the function will show up when you are generating a component, as shown below.

See also

Reference
Attachment 
Attachment