What happened to the "allow blank" parameter option? [message #905656] |
Thu, 30 August 2012 20:21  |
Kyle Kinney Messages: 1 Registered: August 2012 |
Junior Member |
|
|
I can't figure out how to set up a text input parameter to allow empty strings but not null values in BIRT 4.2. Apparently there used to be "allow null" and "allow blank" options, but if they still exist, they can't be set through the Eclipse GUI. (Well, either that, or they're hidden in some unbelievably asinine place, i.e. absolutely anywhere other than New/Edit Parameter window.) There's an "is required" checkbox, but that doesn't do what I want; it allows both null values and empty strings. I want to allow empty strings, but not null values. Is it still possible to do this, and if so, how?
|
|
|
Re: What happened to the "allow blank" parameter option? [message #906183 is a reply to message #905656] |
Fri, 31 August 2012 19:56  |
|
Kyle
The isRequired checkbox replaced the other two options. Take a look at
this bugzilla entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=252343
You could also put a validation script on the parameter with an
expression similar to :
if( params["NewParameter"].value == null ){
false;
}else{
true;
}
Jason
On 8/30/2012 4:21 PM, Kyle Kinney wrote:
> I can't figure out how to set up a text input parameter to allow empty
> strings but not null values in BIRT 4.2. Apparently there used to be
> "allow null" and "allow blank" options, but if they still exist, they
> can't be set through the Eclipse GUI. (Well, either that, or they're
> hidden in some unbelievably asinine place, i.e. absolutely anywhere
> other than New/Edit Parameter window.) There's an "is required"
> checkbox, but that doesn't do what I want; it allows both null values
> and empty strings. I want to allow empty strings, but not null values.
> Is it still possible to do this, and if so, how?
|
|
|
Powered by
FUDForum. Page generated in 0.01681 seconds