Salesforce

How Do I Synchronize Parameters Between Called Program and Calling Program? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Synchronize Parameters Between Called Program and Calling Program? (Magic xpa 4.x)

When you define variables as Parameters in your data view, Magic xpa will automatically try to synchronize the values between the called and calling program. For instance, suppose we have a task that has three parameters, defined as shown:

When we call this program, and click on the arguments we see:

If the two lists don’t match in the Arguments dialog box, then we will get an error message. If one of the parameters is optional and we don’t want to send it, we can check the Skip option for that parameter, so the lists still match.

Note that you can see the name, attribute and picture of the parameters in the called program.

Hint: You may see programs that are called with parameters, but do not have any parameters in their data view section. This is allowed for backward compatibility, but is not a good idea. You should change the virtuals in those programs to parameters, and check all programs that call that program using Ctrl+F (Edit->Find and Replace->Find Reference) to make sure the parameters are in fact being passed correctly.

See also

The Online and Rich Client Samples projects (program TS11 and RTS11)

Reference
Attachment 
Attachment