Adding a Dynamic Image in the Custom Print Template

To add images from within Unifier to the Custom Print template:

  1. Create form fields in the .rtf file, corresponding to the following parameters:
    • <?variable@begin:uuu_p_urlF;(.//uuu_p_urlF)[1]?>
    • <?variable@begin:uuu_p_sessionIdF;(.//uuu_p_sessionIdF)[1]?>
    • <?variable@begin:uuu_p_companyRegistryF;(.//uuu_p_companyRegistryF)[1]?>

      Note: The uuu_p_* is a predefined parameter in the data model.

  2. Right-click the dummy image, select Size, and provide the following value in the Description field of the AltText information for the image:

Description: url:{concat($uuu_p_urlF,'companyRegistry=',$uuu_p_companyRegistryF,'&sessionId=',$uuu_p_sessionIdF,'&id=',<BPIMAGE>)}

In the Description, you can access the image by entering the complete path to the image or by using .// to look for the image in the Data Model.

For example, in the preceding URL value, you must replace the <BPIMAGE> data element with the image file ID "k__<image element>" from the sample XML. See Sample XML Data for Custom Templates (Custom Prints and Reports).

Note: If the Data Model includes multiple levels, you must add each level to the path; for example, use: .//<level1>/<level2>.../<BPIMAGE>



Last Published Friday, April 11, 2025