Salesforce

Using a Runtime Application List with Magic xpa (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Using a Runtime Application List with Magic xpa (Magic xpa 4.x)

Objective

This technical note explains how to set up an Application list to replace the version 9 Application list.

General

Version 9 has a built-in Application list that lets the user select the desired application. Magic xpa does not have this list and this technical note presents a replacement for the list.

The suggested solution consists of writing a very small application, which will be used as the default application. This application holds the names and ECF locations of all other applications.

Whenever a runtime session is opened, the Application List ECF will be invoked and a user will be presented with a screen holding all available applications.

Once the user selects an application and clicks the Open button, the selected application is invoked. This is done using the Open Application internal event, which has an optional parameter, ECF filename.

Implementation Steps

  1. Click here to download an XML file that you will use in this procedure.

  2. Create a project.

  3. Import the XML file that you downloaded in Step 1.

  4. Update the only data source of the application to hold the available applications, one column with the Application Name and the second column with the ECF file location (full path).

  5. Create an ECF file for this application.

  6. Change your Magic.ini file by setting the StartApplication= to point to the newly created ECF file.

In addition to these steps, you can enhance the solution by limiting the available applications according to a user, modifying the supplied screen with a better-designed screen and more.

Note:

If you use different INI settings for each of your applications, this solution will require consolidating the INI files, since only one INI file is used when implementing the solution presented in this technical note.

Another solution is to replace the Raise Event operation and Open Application event with an Invoke OS Command operation that calls the runtime engine as follows:

C:\Magic\MgxpaRuntime.exe /startapplication=full path to an ECF file /ini=full path to the application's ini file.

Reference
Attachment 
Attachment