How to dynamically display images in Cognos reports

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.