Hiding a row with empty values
-
- Posts: 10
- Joined: Wed Jul 31, 2013 5:53 pm
Hiding a row with empty values
I've been trying to hide a row with two columns in a databand when one of the items is empty, but I cant find out how to do this.
Here is how my databand looks like in the Design: I have set "SUBCATEGORIA" row enabled property to false (5th row). When I run the report, the row dont show up but turns into a white space. What should I do so the report dont show the white space when every item in the row is disabled?
Thanks in advance.
Here is how my databand looks like in the Design: I have set "SUBCATEGORIA" row enabled property to false (5th row). When I run the report, the row dont show up but turns into a white space. What should I do so the report dont show the white space when every item in the row is disabled?
Thanks in advance.
-
- Posts: 10
- Joined: Wed Jul 31, 2013 5:53 pm
Re: Hiding a row with empty values
Thanks for the reply, Aleksey!
I've read the section you said, but I still cant find out how to do what I want.
I'm attaching a sample report and a xml with some data to this post.
As you can see, I created a condition to the "City" row (City label and {Customers.City} data field) that will be set disabled when there's no data to display. When I run the report, this row is not displayed but turns into an empty space.
Could you please help me?
Thank you!
I've read the section you said, but I still cant find out how to do what I want.
I'm attaching a sample report and a xml with some data to this post.
As you can see, I created a condition to the "City" row (City label and {Customers.City} data field) that will be set disabled when there's no data to display. When I run the report, this row is not displayed but turns into an empty space.
Could you please help me?
Thank you!
- Attachments
-
- Sample.rar
- (4.13 KiB) Downloaded 332 times
Re: Hiding a row with empty values
Hello.
The Shift Mode works if there is no data in the text component and Can Shrink property is set to true. But doesn't work if you disable component in the Conditions.
Here is a modified report template where you could see how to do it. Thank you.
The Shift Mode works if there is no data in the text component and Can Shrink property is set to true. But doesn't work if you disable component in the Conditions.
Here is a modified report template where you could see how to do it. Thank you.
-
- Posts: 10
- Joined: Wed Jul 31, 2013 5:53 pm
Re: Hiding a row with empty values
Everything is working as I wanted.
Thank you
Thank you
Re: Hiding a row with empty values
Hello,
Thank you for letting us know about this.
Thank you for letting us know about this.
-
- Posts: 10
- Joined: Wed Jul 31, 2013 5:53 pm
Re: Hiding a row with empty values
Hello Andrew,
I thought that everything was ok, but I found something wrong.
When there's more than one "Customer" in the report data and it has City value filled, the row height is shrinked to fit the font size.
Is there a way to make the row height the same as it was specified in the Design and still hide it when it has empty values?
I thought that everything was ok, but I found something wrong.
When there's more than one "Customer" in the report data and it has City value filled, the row height is shrinked to fit the font size.
Is there a way to make the row height the same as it was specified in the Design and still hide it when it has empty values?
- Attachments
-
- Sample.rar
- (4.23 KiB) Downloaded 325 times
Re: Hiding a row with empty values
Hello.
You could set the CanShrink property in the Before Print event of the text components to False if there is any value.
Thank you.
You could set the CanShrink property in the Before Print event of the text components to False if there is any value.
Thank you.
-
- Posts: 10
- Joined: Wed Jul 31, 2013 5:53 pm
Re: Hiding a row with empty values
Aleksey,
I did that and it's all good now.
Thank you again!
I did that and it's all good now.
Thank you again!
Re: Hiding a row with empty values
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.