Sumathi
unread,Aug 30, 2008, 3:59:18 AM8/30/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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