Report - Condition of display on a Image

Stimulsoft Ultimate discussion
Post Reply
fortiaBA
Posts: 17
Joined: Fri Jan 20, 2023 4:26 pm

Report - Condition of display on a Image

Post by fortiaBA »

Dear Stimulsoft community,

I have an MRT/ report in which I would like to place multiple images in the same location but only display one image based on a variable condition, similar to a highlight condition for an image but this time for display purposes.

For example : If variable1 = 1 then the display should be image1 , Field is Value Data type numeric equal to 1
If variable2 = 2 then the display should be image2



Best regards
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Report - Condition of display on a Image

Post by Max Shamanov »

Hello,

Please send us a sample report with test data that reproduces the issue.

Thank you.
fortiaBA
Posts: 17
Joined: Fri Jan 20, 2023 4:26 pm

Re: Report - Condition of display on a Image

Post by fortiaBA »

Hi Max,

The data doesn't matter we just need to set conditions on the images so I can display one image at a time.


You will find below two images that provide further explanation about the data and requirements, along with the MRT file.


Thanks
Attachments
Image of images to display.jpg
Image of images to display.jpg (214.69 KiB) Viewed 9794 times
image of data.jpg
image of data.jpg (244.08 KiB) Viewed 9794 times
Stimulsoft_Report_image_test.mrt
(244.84 KiB) Downloaded 561 times
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: Report - Condition of display on a Image

Post by Max Shamanov »

Hello,

Please check the attached report with example of condition.

Thank you.
Attachments
ConditionsExample.mrt
(675.99 KiB) Downloaded 599 times
fortiaBA
Posts: 17
Joined: Fri Jan 20, 2023 4:26 pm

Re: Report - Condition of display on a Image

Post by fortiaBA »

Hi ,

In the example of condition, does the condition only affect the Highlight of the image or it also permit to hide an image if the condition is not respected ?
I tried using the "highlight condition" before, but it didn't impact the presence of the image. The images selected in the report are always visible, regardless of the condition applied to the input.

Best Regards
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Report - Condition of display on a Image

Post by Lech Kulikowski »

Hello,

To hide component the "Component Is Enabled" option should be unchecked.

Thank you.
Post Reply