Hide textbox on odd or even pages

Stimulsoft Reports.JS discussion
Post Reply
agodoo
Posts: 9
Joined: Tue May 22, 2018 10:56 pm

Hide textbox on odd or even pages

Post by agodoo »

Hello,
I need to hide a textbox control based on odd or even pages.

To start on this task I started with a simpler task just to test; I decided to test it, trying to hide a control on page 2.

I selected the control I need to hide and I set conditions on it.

I used "Field is Expression" type of condition, and setted Expression = ({PageNumber}) == '2'
On such condition I unchecked "Component is Enabled" checkbox.

I also tred with expression like
({PageNumber}) == 2
{PageNumber} == 2

But in any case it always shows the control.

Where am I going wrong?

kind regards,
Matt
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Hide textbox on odd or even pages

Post by Lech Kulikowski »

Hello,

The sample report in the attachment.

Thank you.
Attachments
Screenshot 2021-01-11 112610.jpg
Screenshot 2021-01-11 112610.jpg (426.62 KiB) Viewed 758 times
Report.mrt
(4.58 KiB) Downloaded 100 times
Post Reply