COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Newb on 11 Apr 2023 08:40:54 PM

Title: Do not render image in list if it is not available
Post by: Newb on 11 Apr 2023 08:40:54 PM
Hi all,

I have a list which contains image object. This image object has expression that gets the [image path] + [image file] name from the data source (in this case it's a data module).
If the image is not available in the install_location\bi\images\ folder, it is showing a broken link icon.

Is there any way that we can detect the image is not available in the server and thus not rendering the list at all? I have tried using the "render page when empty" option for the list but it still render, I think since the image placed in the list has expression meaning there is indeed content inside the list.

Appreciate for any advice!

Thanks!
Title: Re: Do not render image in list if it is not available
Post by: dougp on 12 Apr 2023 10:06:54 AM
That depends on your requirements.  If you need only return output in HTML format, use JavaScript.