How can you enable or disable a report object prior to render with source code?
Like disable/enable a detail field or GroupHeader/Footer.
The goal is to have one report spec that covers a few display options.
Dynamically Enable/Disable a Report Band (object)
Re: Dynamically Enable/Disable a Report Band (object)
Hello.
You could do this in different ways.
You could find a component in the report and change its property.
As other way you could do it in BeforePrint event.
Thank you.
You could do this in different ways.
You could find a component in the report and change its property.
Code: Select all
var gHeader = report.getComponentByName("GroupHeaderBand1");
gHeader.enabled = false;
Thank you.
Re: Dynamically Enable/Disable a Report Band (object)
Thank you.
How do you refer to a field in a component such as a field in DataBand1 .. is this the name in the design properties?
How do you refer to a field in a component such as a field in DataBand1 .. is this the name in the design properties?
Re: Dynamically Enable/Disable a Report Band (object)
Hello.
Yes, this is a name of the component.
We should notice that this way you get component from report template but not from the rendered report.
Thank you.
Yes, this is a name of the component.
We should notice that this way you get component from report template but not from the rendered report.
Thank you.
Re: Dynamically Enable/Disable a Report Band (object)
This is great .. it works as very well.
Thank you
Thank you
Re: Dynamically Enable/Disable a Report Band (object)
Hello.
We are always glad to help you.
Let us know if you need help.
Thank you.
We are always glad to help you.
Let us know if you need help.
Thank you.