How to print/show text/object based in condition?
-
- Posts: 11
- Joined: Mon Aug 01, 2016 11:25 pm
How to print/show text/object based in condition?
Hi, there are some components in my report and I'd like to show/hide them according some conditions, example, I have the text with expression Name : {data.name}, the output is Name : RODRIGO, but, sometimes the data.name is not defined and I'd like to hide that text component, how can I check this condition and hide components in report based in conditions?
Re: How to print/show text/object based in condition?
Hello.
The answer depends on many moments.
You could use the Filter to hide empty names, or you could use the Conditions.
We could give you more detailed answer if you send us your report template with sample data and describe what you need to hide more detailed.
Thank you.
The answer depends on many moments.
You could use the Filter to hide empty names, or you could use the Conditions.
We could give you more detailed answer if you send us your report template with sample data and describe what you need to hide more detailed.
Thank you.
-
- Posts: 11
- Joined: Mon Aug 01, 2016 11:25 pm
Re: How to print/show text/object based in condition?
Hello, see the atachments, I need to hide the "text" object based in some condition, this case, if the data field has a value.
If I insert code inside the report I guess I can set hide or visible any objects.
If I insert code inside the report I guess I can set hide or visible any objects.
- Attachments
-
- test.json
- (26 Bytes) Downloaded 228 times
-
- Report.mrt
- (1.24 KiB) Downloaded 319 times
Re: How to print/show text/object based in condition?
Hello,
Please try to add Condition with "Component Is Enabled" option.
Thank you.
Please try to add Condition with "Component Is Enabled" option.
Thank you.
- Attachments
-
- Capture.PNG (45.66 KiB) Viewed 3822 times