Parameter issue (not SQL parameter) [message #22952] |
Fri, 25 March 2005 10:31  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07331 seconds