Reputation: 299
I'm totally new at BI Publisher and XML templates. I'm trying to update a template to add the logo for a new company/organization. The same templates will be used for 3 separate branches/organizations within JD Edwards.
I'm having trouble trying to conditionally set the url
code in the alt text of the dummy image. I think it's because the interpreter can't understand having a <?choose:?>
tag inside the url{}
definition? How can I use a choose function to return the proper string to the url{}
definition?
Upvotes: 0
Views: 919
Reputation: 1953
Two options:
Concatenation:
Just concatenate the source location of your image with an XML variable that holds the brand name.
url:{concat('/folder1/folder2/',BRANCH_NAME_XML_ELEMENT,'_LOGO.JPG')}
Assuming your BRANCH_NAME_XML_ELEMENT
is WALMART
it will then load the image: /folder1/folder2/WALMART_LOGO.JPG
IF Statements
Make three different dummy images. Each with their respective URL for the logo. Then put each image within an if/end if statement. Will make things look like hell in the RTF file, but it will functionally work when everything is rendered.
Upvotes: 0