A discussion arose around input parameters in BIRT and how to validate
them. I've tried to use scripting for this as it seems to be a good idea.
However, no success as yet.
I selected one parameter in the data explorer view, chose script tab, made
sure it read validate in the Script combo box. From documentation I read
that this function is supposed to return a boolean value.
Neither returning boolean values worked, nor doing simple variable
assignments. There are some suggestions / a few links on the web but I
haven't found concrete examples or how-to.
parameter in BIRT?
I have been investigating to reach a somehow similar objective.
I came up with this solution:
1) Calling an event handler at the initialize time of the report
2) Recuperate the parameters
3) Call any verification functionI want using java
4) Decide what to do based on the result of this function
I came up with a solution for parts 1), 2) and 3) and I am expecting help
on the part 4).
Maybe this could be of some help to you.
If you wish, give a look at my post, ant is eventual follow-ups.
Thanks for the reply. I'm not sure the above reply helps me. I have to
catch up on reading about event handlers though. I'll investigate more.
when running a report, the parameter dialog is shown. After providing
content in the various fields, one clicks the Ok button to run the report.
What I would like to do is to validate user input here. If ok, go on. If
not ok, stop report work and present parameter dialog again. If possible
with a message.
Any experience with parameter dialog box and scripting?
Essentially have a gatekeeper between the parameter dialog box and the
running of the report.
I need some help here..
I'm using BIRT 2.6.1..i have created one parameter with data type = String and display type = textBox. How to validate the paramater using validate event even though the parameter value is null (which means the radio button with Null Value is checked)?
I'm not sure I'm understanding completely. You want to validate a value in the textbox even though the null value radio button is selected? Is this the case? Or do you want to validate the null value? Let me know.
I want to validate the null value. If parameter with display type = textbox and isRequired = false, the parameter page will display Null Value radio button below the textbox.
As what i can see, when i checked the radio button (Null Value), parameter is not validated.
On 7/12/2011 4:05 AM, arlene86 wrote:
> I need some help here..
> I'm using BIRT 2.6.1..i have created one parameter with data type =
> String and display type = textBox. How to validate the paramater using
> validate event even though the parameter value is null (which means the
> radio button with Null Value is checked)?
I still got a problem.When i checked the Null Value, i don't get any error message.
I want to allow blank for the input parameter but disallow null. How to do something like this? i'm using BIRT 2.6.1.
It looks like the validate event is not being called if the parameter
value is null. Can you log a bug for this? You could check in the
beforeFactory and then add a script tag in a text element to forward to
On 7/13/2011 9:04 PM, arlene86 wrote:
> Hi Jason,
> I still got a problem.When i checked the Null Value, i don't get any
> error message.
> I want to allow blank for the input parameter but disallow null. How to
> do something like this? i'm using BIRT 2.6.1.