• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

Conditioning the printing of a Logo in the BIP Template Builder for Word.

jimmymac

Reputable Poster
Greetings, we are on E1 9.0, tools 8.98.42, and use the Embedded BI publisher for JD Edwards to format Checks and ACH remittance documents. We use the BIP Template Builder for Word 10.1.3.4.1.

We currently print the company logo (call it company x) on these documents. We have now been asked to print either the logo for Company X or Company Y on the checks based on some condition. I see how I would condition a logo to print or not based on some condition, but not how to print one logo or another in the same position on the document. It seems if I insert a conditional region, I can condition whether a logo would print or not, but it does not seem to let me specify these two logos to print in the exact same position. Of course I don't want to print them both at the same time. The conditions will be mutually exclusive. If Field1 equals 'X' print logo for company x, if Field1 is not equal to 'X', print logo for company y.

There doesn't seem to be a way in the template builder for word to define both logos to print in the same position.

Any thoughts on how to do this, or any another approach to handle the same scenario would be appreciated.

Thanks.
 
One option for this to handle can be having 2 active RTF templates for that RD(Report defination)...One with logo X and One with Logo Y and the users can then take the desired printout as needed
 

Abhishek Chhajer

Well Known Member
Greetings, we are on E1 9.0, tools 8.98.42, and use the Embedded BI publisher for JD Edwards to format Checks and ACH remittance documents. We use the BIP Template Builder for Word 10.1.3.4.1.

We currently print the company logo (call it company x) on these documents. We have now been asked to print either the logo for Company X or Company Y on the checks based on some condition. I see how I would condition a logo to print or not based on some condition, but not how to print one logo or another in the same position on the document. It seems if I insert a conditional region, I can condition whether a logo would print or not, but it does not seem to let me specify these two logos to print in the exact same position. Of course I don't want to print them both at the same time. The conditions will be mutually exclusive. If Field1 equals 'X' print logo for company x, if Field1 is not equal to 'X', print logo for company y.

There doesn't seem to be a way in the template builder for word to define both logos to print in the same position.

Any thoughts on how to do this, or any another approach to handle the same scenario would be appreciated.

Thanks.
That is possible for sure. Send me your RTF and logos.
 

BBritain

VIP Member
Hi Jimmymac,

Whenever I have multiple logos, I put them in the same place:
C
Logo1
EC C
Logo 2
EC C
Logo 3
EC

And even though they don't display at design time in the same place, they print out in the same place. My conditional logic is <?if:CompanyKeyOrderNo_ID276='42300' or CompanyKeyOrderNo_ID276='42101'?> for one of the logos and different logic for the other two.

Let me know if I am answering the wrong question.

Ben again,
 
Hi,

We have another way round to do this.

We can place the images in the server and by using Path we can access and display images in BI Publisher.

Use Processing Option to enter file path and Image Name. (If there are three images then use three different PO).

Based on the condition, concatenate the image name with file path and pass it to report variable.

In RTF, right click on the image and you will get Format Picture dialog window. In the dialog window, under WEB tab, write the code as "url:{Logo_Path_ID121}" where Logo_Path_ID121 is XML tag name.

Let me know if any questions.

Thanks.
 

lmujica

Active Member
Hello jimmymac,

You can use a element from the xml file to reference an image. Here's the text from a manual that explain that:

Element Reference from XML File

1. Insert a dummy image in your template.

2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the

following syntax in the Alternative text region to reference the image URL:

url:{IMAGE_LOCATION}

where IMAGE_LOCATION is an element from your XML file that holds the full

URL to the image.

You can also build a URL based on multiple elements at runtime. Just use the

concat function to build the URL string. For example:

url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}

where SERVER, IMAGE_DIR, and IMAGE_FILE are element names from your XML

file that hold the values to construct the URL.

This method can also be used with the OA_MEDIA reference as follows:

url:{concat('${OA_MEDIA}','/',IMAGE_FILE)}

Hope it helps. Regards,


Luis.
 

TimPierce

Reputable Poster
I used the following which worked like a dream.

Put this in your header which displays either logo1 or logo2 depending on the variable passed in from the PDF (defaulting to logo1 if no match):-

<?choose:?>
<?when:cVariable=”1”?> <?call: logo1?> <?end when?>
<?when:cVariable=”2”?> <?call: logo2?> <?end when?>
<?otherwise:?> <?call:logo1?> <?end otherwise?>
<?end choose?>

And this at the bottom of the report, out of sight.

<?template:logo1?>
paste logo 1 here
<?end logo1?>
<?template:logo2?>
paste logo 2 here
<?end logo2?>
 

Justin429

Member
I used the following which worked like a dream.

Put this in your header which displays either logo1 or logo2 depending on the variable passed in from the PDF (defaulting to logo1 if no match):-

<?choose:?>
<?when:cVariable=”1”?> <?call: logo1?> <?end when?>
<?when:cVariable=”2”?> <?call: logo2?> <?end when?>
<?otherwise:?> <?call:logo1?> <?end otherwise?>
<?end choose?>

And this at the bottom of the report, out of sight.

<?template:logo1?>
paste logo 1 here
<?end logo1?>
<?template:logo2?>
paste logo 2 here
<?end logo2?>
This is an excellent way to handle logo swapping, and I've used it in the past. I did end up in a situation, however, where the client had many companies which lead to having over 20 logos. Because there were so many logos, the RTF file ended up being nearly 40 MB, so I had to come up with an alternative. What I ended up doing was placing the files in a web server (although a network folder would have worked) and using a placeholder image on the template. Then, at runtime a variable was evaluated to pick the correct logo, and that information was passed in to the alt text for the placeholder image.
 
Top