The user wishes to dynamically display the product Log in Cognos according to the product. This can be achieved through the condition variable in Cognos, and each product value corresponds to an image name. This is more complex. You must first define multiple variables and then set the Image URL address for each variable.
For details, refer:How to show images dynamically?
Another method is to use "Report Expression" for the Source type in the URL Source ".
The following example shows the dynamic display of Images Based on countries.
1. Drag the country field and insert an Image field.
650) this. width = 650; "style =" float: none "title =" 2013-6-19 16-43-21.png "src =" http://www.bkjia.com/uploads/allimg/131228/2229525C1-0.png "/>
2. Modify the URL Source:
650) this. width = 650; "style =" float: none "title =" 2013-6-19 16-53-23.png "src =" http://www.bkjia.com/uploads/allimg/131228/2229524O1-1.png "/>
The report expression is '../samples/images/country/'{{query1}.{country}}'.jpg'
This expression indicates that each Country row will find an image with the same country value.
As follows:
650) this. width = 650; "style =" float: none "title =" 2013-6-19 16-53-46.png "src =" http://www.bkjia.com/uploads/allimg/131228/2229523106-2.png "/>
This article is from the "follow SQL Server Technology" blog, please be sure to keep this source http://lzf328.blog.51cto.com/1196996/1225197