Noor Jahan
27th March 2014, 08:16
Hi..
How to not print labels on reports depending on some condition...
is any one have answer for this.
Is there any function ?
Or any other solution for this ?
bhushanchanda
27th March 2014, 09:52
Hi,
A simple way to do it is by using report input fields of string type to show them as label. In that way you can easily handle them.
But, there is a way to handle the labels too. For that you need to debug you report and find out the label values. Now you can simply do something like this to hide them:-
e.g. I want to hide a label with description "Date" which is in my header I ll put this in my report script.
header.1:
before.layout:
if condition not met then
r_label.value(1,1) = " " | This is my Date label.
endif
To know the label values, in the debugger check under function:-
r_label.init.0()
Though, I will prefer using variables to do it rather than the above method.
Noor Jahan
27th March 2014, 13:18
thanks bhushachanda.
I will try.
alucy0210
11th April 2015, 07:55
Hi,
A simple way to do it is by using report input fields of string type to show them as label. In that way you can easily handle them.
But, there is a way to handle the labels too. For that you need to debug you report and find out the label values. Now you can simply do something like this to hide them:-
e.g. I want to hide a label with description "Date" which is in my header I ll put this in my report script.
header.1:
before.layout:
if condition not met then
r_label.value(1,1) = " " | This is my Date label.
endif
To know the label values, in the debugger check under function:-
r_label.init.0()
Though, I will prefer using variables to do it rather than the above method.
Thanks that's help!