Salesforce

How Do I Send Parameters to a Rich Client Program? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Send Parameters to a Rich Client Program? (Magic xpa 3.x)

You can send parameters from the publish.html file to your Magic xpa program. This allows you to capture data sent on the command line to the HTML.

Here is how to do it:

  1. Publish.html calls Magic xpa by calling the manifest file, which was created when you published your application. You can find it in the default publish.html in the launchApplication() function.

  2. Append your parameters onto this call. For instance, to send two parameters called userLoc and userZip, you could enter:

window.location.href = "http://ServerA/Pet Pictures/PetPictures.application?userLoc=Atlanta&UserZip=91122";

  1. Within your Magic xpa task, use the GetParam() function to fetch the value of these variables. In this instance, GetParam(‘userLoc’) and GetParam(‘userZip’) would retrieve the passed information.

Note: These steps work only when using the Internet Explorer® browser.

See also the Help for GetParam() for details on how to use this function.

Reference
Attachment 
Attachment