Salesforce

How Do I Merge Data into One Document From Several Tasks? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Merge Data into One Document From Several Tasks? (Magic xpa 3.x)

This question occurs in two different scenarios. The first one is where the separate tasks are part of the same program and share a common ancestor. The second scenario is where the tasks are part of two different programs. The methods are slightly different in each case; let’s look at both of them.

Note that the methodology here is the same as that used for printing reports, and is covered in detail in How Do I Print a Report from Several Programs to the Same I/O Device?.

Merging data from two tasks in the same program

When you have two tasks in the same program that need to merge data into one document, you can handle this as you would for a report: open the I/O device in a parent task that is shared between the two tasks.

Merging data from two different programs

When you are merging data in two different programs, the I/O Name to Use property routes the output for you. The parent task is set up with an I/O Name, as shown below:

Now, in any program that will have output routed to the same file or requester, this same name is used in the I/O Name to use property:

The child program will route the output to the file that was opened in the parent, even if a different file name was specified in the child.

Note: Be sure to use the same Media type in both programs. If one program uses a File and one uses a Printer, it will pass syntax check but will give inconsistent results at runtime.

See also

The Online and Rich Client Samples projects (programs MG10, MG11 and RMG10, RMG11)

Reference
Attachment 
Attachment