You are not logged in.
Hi,
I need to setup a boolean parameter as checkbox , how can I do?
I set up a text parameter as boolean java type, but I need to type FALSE or TRUE anytime in the input box.
Thanks for your support.
Alex
Offline
Hi Alex,
what you can use is a datasource parameter. You can either write a simple dummy query returning two values or, for example, define a CSV datasource with an argument connector. Then you could
use the following to define a boolean parameter
value; display
true; Yeah
false; Boo
Choose single select, radio and boolean and you should be done.
Cheers
-Arno
Offline
Thanks a milion, works like a charm
Since Reportserver does not have the concept of required parameter, how can I specify in the patter field (parameter properties) that the parameter has to be only numeric and only five digits.
Thanks in advance,
Alex
Offline
Thanks a milion, works like a charm
Since Reportserver does not have the concept of required parameter, how can I specify in the patter field (parameter properties) that the parameter has to be only numeric and only five digits.
Thanks in advance,
Alex
Hi,
I self answered the pattern has to be : ^[0-9]*$ (for only numeric), but I can't filter the empty field value. I mean, I also tried ^[0-9]+$ , but Reportserver allow me to leave the field empty and if I run the report like this I get an execption beacause this parameter is required into the report.
How can I do ?
Thanks,
Alex
Offline
Hi Alex,
I am afraid you'll have to wait for the next version. We've integrated a concept for making parameters mandatory.
Cheers
-Arno
Offline
So I still don't see a boolean parameter in the current version... this was extremely confusing for me because parameter extraction was failing because of the system not recognizing a boolean parameter type in a BIRT report. Is there a plan to get this implemented sometime, other than using the datasource trick?
Also, back in 2014 there was mention in a forum post of a boolean report parameter in version 2.1.4, was that referring to a different type of parameter?
Offline
Thanks for bringing this to our attention. I've filed a bug report to look into the parameter extraction. As for a boolean parameter, there are no immediate plans, but also here I filed a feature request ticket.
Offline