Skip to main content



      Home
Home » Archived » BIRT » Parameter issue (not SQL parameter)
Parameter issue (not SQL parameter) [message #22952] Fri, 25 March 2005 10:31 Go to next message
Eclipse UserFriend
Originally posted by: mbatchelor.no_s_p_a_m.pentaho.com

I'm trying to do a simple test of parameters, and I want to be sure I've got
the flow down properly. I'm getting an exception, so I figure I'm doing
something wrong.

a- Right-click on Parameters and choose New Parameter.
b- Create a simple string parameter called InEmployee
c- Open up the dataset.
d- Go to filters
Expression=row["Employee"]
Operator=Equal to
Value 1=params["InEmployee"]

When I try to preview the results, I get:

Error evaluating script(source:Filter, line:0): "params" is not defined..

Then, I tried to go to the Input Parameters part of the dataset, and created
InEmployee. This allows me to get past the Filters, but now when I preview,
I get an error:

Parameter position cannot be less than 1.
Reason: java.lang.IllegalArgumentException occurred.


Any hints?

Thanks,

Marc
Re: Parameter issue (not SQL parameter) [message #23727 is a reply to message #22952] Wed, 30 March 2005 01:30 Go to previous message
Eclipse UserFriend
Marc,

Sorry for the delay; we were distracted getting the new stable build ready.
I've been able to reproduce the problem you describe in the S20050328 build.
I'll ask the team to take a look.

- Paul

Paul Rogers
BIRT PMC

"Marc Batchelor" <mbatchelor@no_s_p_a_m.pentaho.com> wrote in message
news:d21fmu$q2l$1@news.eclipse.org...
> I'm trying to do a simple test of parameters, and I want to be sure I've
> got
> the flow down properly. I'm getting an exception, so I figure I'm doing
> something wrong.
>
> a- Right-click on Parameters and choose New Parameter.
> b- Create a simple string parameter called InEmployee
> c- Open up the dataset.
> d- Go to filters
> Expression=row["Employee"]
> Operator=Equal to
> Value 1=params["InEmployee"]
>
> When I try to preview the results, I get:
>
> Error evaluating script(source:Filter, line:0): "params" is not defined..
>
> Then, I tried to go to the Input Parameters part of the dataset, and
> created
> InEmployee. This allows me to get past the Filters, but now when I
> preview,
> I get an error:
>
> Parameter position cannot be less than 1.
> Reason: java.lang.IllegalArgumentException occurred.
>
>
> Any hints?
>
> Thanks,
>
> Marc
>
>
Previous Topic:BIRT in RCP example
Next Topic:Running reports in PDF
Goto Forum:
  


Current Time: Thu May 08 22:49:55 EDT 2025

Powered by FUDForum. Page generated in 0.07331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top