简体   繁体   中英

Hide or Unhide based on tablix in SSRS

I am supposed to show textbox based on Tablix. It will be appear on the page where the tablix exists. It stops showing when the report page doesn't exist on the page. How can I achieve it? I am thinking of using reportItems but I don't know exactly how. I have already one column in my tablix for using reportitem. Can I have two report items in the same tablix( that one I am not sure too)? Am I clear in explaining my issue?

在此处输入图片说明

Rather than checking if the Tablix exists on a page, perhaps think about what data causes the Tablix to exist.

Say your Tablix is displaying data on dogs, but on one of your pages you don't have any valid dogs, so no Tablix. In this case you could check for this in the Hidden property of the Text Box:

=IIF(Count(Fields!DOG_ID.Value) = 0, True, False)

(For the opposite of this, a Tablix has a NoRowsMessage property you can set rather than needing an extra Text Box.)

Goto the properties of the text box and then goto Visibility. Select "Show or hide based on expression" and click on the [fx] button.

To show or hide depending if the Tablix returns any data or not:

Then enter the below: =iif(CountRows("NameOfTheDataseOfTheTablix") < 1,True, False)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM