Dynamically change 'images' (like company logos) on a report

1 view
Skip to first unread message

Sumathi

unread,
Aug 30, 2008, 3:59:18 AM8/30/08
to orangescape.dimension
Hi All,

Here is a quick tip for 'Dynamically changing the images (like company
logo) on a report based on the value of a field.

Scenario 1: A big customer wants to dynamically display different
logos (i.e., its country wise logos or industry wise logos) on the
reports.

Scenario 2: Deploying a packaged solution like 'Law Firm Management
System' for different law firms or 'IOAS' at various client places
like NIOT, NCOAR, INCOIS, will require logo customization on the
reporting module

Solution:
The steps to be followed:
1.Create new Report
2.Insert image to layout
3.Open the Expression Builder
4.if
(row["CompanyName"]=="NIOT)")
{"/webcontent/birt/images/niotlogo.gif"}
else if
(row["CompanyName"]=="NCOAR")
{"/webcontent/birt/images/ncoarlogo.gif"}
else if
(row["CompanyName"]=="INCOIS")
{"/webcontent/birt/images/incoislogo.gif"}
else
{"/webcontent/birt/images/ioaslogo.gif"}

Similarly,
You can write multiple if-else condition based on your requirements.

Note: Paste your images to the below path:
Server/DimensionServer/server/default/deploy/Reports.ear/Reports.war/
webcontent/birt/images
Reply all
Reply to author
Forward
0 new messages