Defining a Data Driven Printer Mapping Record

Access the Report Definition application (P95620).

  1. Select a report definition in the grid, and then click the Select button.

    Note:

    If you are adding a new report definition, you can define a data driven printer mapping record on the Bursting and Delivery form, as described below.

  2. On the Update Report Definition form, from the Form menu, select Burst/Delivery.

  3. (Optional) On the Bursting and Delivery form, in the Data Driven Recipient column, enter an XPath from the XML output that contains the recipient data.

    Note:

    If there is more than one data driven recipient XPath shown in the grid, ensure that you select the correct value before you define the data driven printer record. The tag for the selected value is passed into the Data Driven Printing form. If necessary, the value passed into the form can be changed.

  4. In the Delivery section, click the Data Driven Delivery checkbox.

  5. Click the Data Driven Printer Mapping button.

  6. On the Data Driven Printing form, enter the XPath field in the Delivery Tag column if the value was not passed in from the Bursting and Delivery form.

  7. Enter a printer delivery mapping name, or use the visual assist to select a mapping name.

    If an appropriate mapping name does not exist, follow the next steps to add a new printer delivery mapping name.

  8. To add a new printer delivery mapping name, select Add Printer Mapping from the Form menu.

  9. On the Printer Mapping Revisions form, enter a name in the Printer Delivery Mapping field.

  10. Enter a value in the Printer Delivery Value field.

    The printer delivery value must be a valid value from the XPath field that you specified as the delivery tag.

    Note:

    The printer delivery value can be any valid business view column or variable value in the XML source that you associate with a printer device to indicate where you want the output to be sent. You must enter the value exactly as it is shown in the XML source. For example, if the XML shows 00001 for Company, you must enter 00001 for the printer delivery value, not 1.

    Some values might have leading spaces in the XML source, as in the following example:

      <CostCenter_1>       50</CostCenter_1>

    Note that there are leading spaces. When you enter 50 as the printer delivery value on the Printer Mapping Revisions form, you must include the leading spaces.

    However, you can remove the leading spaces in the XML source by using the ltrim function in Report Design Aid event rules. (To locate the ltrim function, select a value in the Expression Manager, and then expand the Text folder in the Advanced Functions list).

    The following example shows an assignment using ltrim to remove leading spaces from the MCU value:

     RV DeliveryTag = ltrim[BC Business Unit (F42565)(MCU)
    

    As a result, the XML source will show the business unit value without leading spaces, as shown in the following example:

      <CostCenter_1>50</CostCenter_1>
    

    In this case, you can enter the value 50 as the printer delivery value without any leading spaces.

  11. Enter a printer device, or use the visual assist to select a printer.

  12. Click OK to save the data driven printer mapping record and return to the Bursting and Delivery form.