Hello!
Here I have DataBand with text fields inside. I would like to do the next: the text field which displays MAIN.SEC_PRICE_LAST (yellow) should be hidden if MAIN.SEC_PRICE_LAST is null. Also the height of text field which shows MAIN.SEC_PRICE_FIRST (green) should be stretched to the height of DataBand.
This is how the result looks like now:
The left result is okay but in case when MAIN.SEC_PRICE_LAST is null I would like the report to look as follows:
I would appreciate any assistance. Thank you!
Change the size of text field if the data does not exist
-
- Posts: 3
- Joined: Sat Sep 16, 2023 12:10 pm
-
- Posts: 6335
- Joined: Tue Mar 20, 2018 5:34 am
Re: Change the size of text field if the data does not exist
Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
-
- Posts: 3
- Joined: Sat Sep 16, 2023 12:10 pm
Re: Change the size of text field if the data does not exist
Lech Kulikowski wrote: ↑Mon Sep 18, 2023 10:47 am Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
-
- Posts: 6335
- Joined: Tue Mar 20, 2018 5:34 am
Re: Change the size of text field if the data does not exist
Hello,
> the text field which displays MAIN.SEC_PRICE_LAST (yellow) should be hidden if MAIN.SEC_PRICE_LAST is null.
You can use the expression for the Enabled property:
MAIN.SEC_PRICE_LAST != ""
> Also the height of text field which shows MAIN.SEC_PRICE_FIRST (green) should be stretched to the height of DataBand.
You can set the GrowToHeight property for the MAIN.SEC_PRICE_FIRST text component.
Thank you.
> the text field which displays MAIN.SEC_PRICE_LAST (yellow) should be hidden if MAIN.SEC_PRICE_LAST is null.
You can use the expression for the Enabled property:
MAIN.SEC_PRICE_LAST != ""
> Also the height of text field which shows MAIN.SEC_PRICE_FIRST (green) should be stretched to the height of DataBand.
You can set the GrowToHeight property for the MAIN.SEC_PRICE_FIRST text component.
Thank you.
- Attachments
-
- ReportSample.mrt
- (7.37 KiB) Downloaded 174 times
-
- Posts: 3
- Joined: Sat Sep 16, 2023 12:10 pm
Re: Change the size of text field if the data does not exist
Thank you very much, I solved it!Lech Kulikowski wrote: ↑Mon Sep 18, 2023 8:47 pm Hello,
> the text field which displays MAIN.SEC_PRICE_LAST (yellow) should be hidden if MAIN.SEC_PRICE_LAST is null.
You can use the expression for the Enabled property:
MAIN.SEC_PRICE_LAST != ""
> Also the height of text field which shows MAIN.SEC_PRICE_FIRST (green) should be stretched to the height of DataBand.
You can set the GrowToHeight property for the MAIN.SEC_PRICE_FIRST text component.
Thank you.
-
- Posts: 6335
- Joined: Tue Mar 20, 2018 5:34 am
Re: Change the size of text field if the data does not exist
Hello,
You are welcome.
You are welcome.