Page 1 of 1

Conditional Page Print

Posted: Wed Sep 08, 2021 3:15 pm
by David334
Hello, I am trying to have a page print based on the value of a record returned from a sql qry. Basically, if a customer is "X", print the page, otherwise disable it.
I looked at the conditions for the page, but all I am presented with is an option for highlighting, nothing more.

How can I enable of disable the page based on a variable?

Re: Conditional Page Print

Posted: Fri Sep 10, 2021 6:28 am
by Lech Kulikowski
Hello,

You can use the "Component Is Enabled" option in the Condition for that task.

Thank you.

Re: Conditional Page Print

Posted: Fri Oct 15, 2021 12:21 pm
by David334
This doesn't seem to be working.
I created a variable that is set to True or False depending on a customer name, then in the Conditions section of the page (under appearance), I used this as the expression: ShippingChkLst.Enabled=varriable.

Is this what you are talking about doing?

Re: Conditional Page Print

Posted: Fri Oct 15, 2021 1:03 pm
by Lech Kulikowski
Hello,

Please check sample report in the attachment.

Thank you.

Re: Conditional Page Print

Posted: Fri Oct 15, 2021 2:29 pm
by David334
This is so unbelievably frustrating. I hate Shoptech with a passion!
I am yet another user of shoptech who is forced to use a butchered version of this software where they seem to break its functionality. Then when you ask for info on how to use the designer to modify reports they direct us here, which yields zero results because all the help you provide is useless in shoptech's modified version.
Not stimulsofts fault, just ranting out of utter frustration.

This file you attached is useless to me as I have zero way of opening it. If you could kindly have patience with me, attached is a screen shot of the section I am entering info in. Is this the correct location and syntax?

Re: Conditional Page Print

Posted: Fri Oct 15, 2021 5:04 pm
by David334
Lech Kulikowski wrote: Fri Oct 15, 2021 1:03 pm Hello,

Please check sample report in the attachment.

Thank you.
Hello, thank you for this file. I was able to locate where shoptech loads its default reports and I replaced one with this so I was able to view it. It helped me tremendously, thank you thank you thank you!

Re: Conditional Page Print

Posted: Sun Oct 17, 2021 5:25 pm
by Lech Kulikowski
Hello,

You are welcome.