Skip to main content



      Home
Home » Archived » BIRT » Invalid Javascript expression when using a parameter for a report
Invalid Javascript expression when using a parameter for a report [message #102623] Tue, 27 December 2005 17:19 Go to next message
Eclipse UserFriend
Originally posted by: tamosunas.comcast.net

Hello,

I created a report, in in my data set, I added a SQL query with a
parameter. I added the ? in the query and it asked me to fill in a
parameter. Fine. I then bound the parameter to a Report Parameter and
this seemed to work. However, now when I try to do just about anything
(edit data sets, preview report, add a new column) I get the following
popup with the error:

Invalid Javascript expression. Source: ParamBinding(param1), line:0,
Expression:
params["device_id"]
Script engine error: ReferenceError: "params" is not defined.

Reason:
A Birt exception occured.

Details shows the following:

A Birt exception occurred.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Data Engine
Plug-in ID:org.eclipse.birt.data
Version:1.0.1
Error Code:data.engine.JSScriptInvalid
Error Message:Invalid Javascript expression. Source:
ParamBinding(param1), line: 0, Expression:
params["device_id"]
Script engine error: ReferenceError: "params" is not defined.


I am running Eclipse 3.1, JDK 1.5, Birt 1.0.1, EMF 2.1.0, GEF 3.1.0 on
Windows XP.

Any help would be appreciated!

Thanks,

Scott
Re: Invalid Javascript expression when using a parameter for a report [message #102656 is a reply to message #102623] Tue, 27 December 2005 19:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi Scott,

Where did you bind the data set parameter to the report parameter? If you
bound it in the data set editor (i.e., you set the default value of the data
set parameter to the report parameter) you get an error.

You bind a data set parameter to a report parameter at the table or list
element level.
1) Select the table that displays the data from the data set.
2) In Property Editor, choose the Binding tab.
3) The data set parameter you created is listed there. Bind it to the report
parameter.

Hope this helps.
-Diana

"Scott" <tamosunas@comcast.net> wrote in message
news:doseho$7s6$1@utils.eclipse.org...
> Hello,
>
> I created a report, in in my data set, I added a SQL query with a
> parameter. I added the ? in the query and it asked me to fill in a
> parameter. Fine. I then bound the parameter to a Report Parameter and
> this seemed to work. However, now when I try to do just about anything
> (edit data sets, preview report, add a new column) I get the following
> popup with the error:
>
> Invalid Javascript expression. Source: ParamBinding(param1), line:0,
> Expression:
> params["device_id"]
> Script engine error: ReferenceError: "params" is not defined.
>
> Reason:
> A Birt exception occured.
>
> Details shows the following:
>
> A Birt exception occurred.
> Plug-in Provider:Eclipse.org
> Plug-in Name:BIRT Data Engine
> Plug-in ID:org.eclipse.birt.data
> Version:1.0.1
> Error Code:data.engine.JSScriptInvalid
> Error Message:Invalid Javascript expression. Source:
> ParamBinding(param1), line: 0, Expression:
> params["device_id"]
> Script engine error: ReferenceError: "params" is not defined.
>
>
> I am running Eclipse 3.1, JDK 1.5, Birt 1.0.1, EMF 2.1.0, GEF 3.1.0 on
> Windows XP.
>
> Any help would be appreciated!
>
> Thanks,
>
> Scott
Re: Invalid Javascript expression when using a parameter for a report [message #102777 is a reply to message #102656] Wed, 28 December 2005 08:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tamosunas.comcast.net

Hi Diana,

Thanks for the help. That seemed to clear up those errors, although I
don't really understand why I cannot bind the params in the default
value when editing the data set as it allows me to do so, seems a little
counter-intuitive.

However, now when I try to preview the report, it's coming up completely
blank. I have set the report paramater to a good known quantity and it's
completely empty. I tried this both in the Eclipse IDE and also in the
birt viewer. I looked in the logs for the birt viewer and didn't see
anything interesting. Any ideas why this might be happening?

Thanks again,

Scott

Diana Peh wrote:
> Hi Scott,
>
> Where did you bind the data set parameter to the report parameter? If you
> bound it in the data set editor (i.e., you set the default value of the data
> set parameter to the report parameter) you get an error.
>
> You bind a data set parameter to a report parameter at the table or list
> element level.
> 1) Select the table that displays the data from the data set.
> 2) In Property Editor, choose the Binding tab.
> 3) The data set parameter you created is listed there. Bind it to the report
> parameter.
>
> Hope this helps.
> -Diana
>
> "Scott" <tamosunas@comcast.net> wrote in message
> news:doseho$7s6$1@utils.eclipse.org...
>
>>Hello,
>>
>>I created a report, in in my data set, I added a SQL query with a
>>parameter. I added the ? in the query and it asked me to fill in a
>>parameter. Fine. I then bound the parameter to a Report Parameter and
>>this seemed to work. However, now when I try to do just about anything
>>(edit data sets, preview report, add a new column) I get the following
>>popup with the error:
>>
>>Invalid Javascript expression. Source: ParamBinding(param1), line:0,
>>Expression:
>>params["device_id"]
>>Script engine error: ReferenceError: "params" is not defined.
>>
>>Reason:
>>A Birt exception occured.
>>
>>Details shows the following:
>>
>>A Birt exception occurred.
>> Plug-in Provider:Eclipse.org
>> Plug-in Name:BIRT Data Engine
>> Plug-in ID:org.eclipse.birt.data
>> Version:1.0.1
>> Error Code:data.engine.JSScriptInvalid
>> Error Message:Invalid Javascript expression. Source:
>>ParamBinding(param1), line: 0, Expression:
>>params["device_id"]
>>Script engine error: ReferenceError: "params" is not defined.
>>
>>
>>I am running Eclipse 3.1, JDK 1.5, Birt 1.0.1, EMF 2.1.0, GEF 3.1.0 on
>>Windows XP.
>>
>>Any help would be appreciated!
>>
>>Thanks,
>>
>>Scott
>
>
>
Re: Invalid Javascript expression when using a parameter for a report [message #102827 is a reply to message #102777] Wed, 28 December 2005 14:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi Scott,

You should file a bug about this usability issue.

As for why your report is blank, there are too many possibilities. Are there
labels (static text) in your report that are also not showing up? Have you
tried restarting Eclipse with -clean?

Sorry I can't be more helpful.
-Diana

"Scott" <tamosunas@comcast.net> wrote in message
news:dou3rq$8hc$1@utils.eclipse.org...
> Hi Diana,
>
> Thanks for the help. That seemed to clear up those errors, although I
> don't really understand why I cannot bind the params in the default
> value when editing the data set as it allows me to do so, seems a little
> counter-intuitive.
>
> However, now when I try to preview the report, it's coming up completely
> blank. I have set the report paramater to a good known quantity and it's
> completely empty. I tried this both in the Eclipse IDE and also in the
> birt viewer. I looked in the logs for the birt viewer and didn't see
> anything interesting. Any ideas why this might be happening?
>
> Thanks again,
>
> Scott
>
> Diana Peh wrote:
> > Hi Scott,
> >
> > Where did you bind the data set parameter to the report parameter? If
you
> > bound it in the data set editor (i.e., you set the default value of the
data
> > set parameter to the report parameter) you get an error.
> >
> > You bind a data set parameter to a report parameter at the table or list
> > element level.
> > 1) Select the table that displays the data from the data set.
> > 2) In Property Editor, choose the Binding tab.
> > 3) The data set parameter you created is listed there. Bind it to the
report
> > parameter.
> >
> > Hope this helps.
> > -Diana
> >
> > "Scott" <tamosunas@comcast.net> wrote in message
> > news:doseho$7s6$1@utils.eclipse.org...
> >
> >>Hello,
> >>
> >>I created a report, in in my data set, I added a SQL query with a
> >>parameter. I added the ? in the query and it asked me to fill in a
> >>parameter. Fine. I then bound the parameter to a Report Parameter and
> >>this seemed to work. However, now when I try to do just about anything
> >>(edit data sets, preview report, add a new column) I get the following
> >>popup with the error:
> >>
> >>Invalid Javascript expression. Source: ParamBinding(param1), line:0,
> >>Expression:
> >>params["device_id"]
> >>Script engine error: ReferenceError: "params" is not defined.
> >>
> >>Reason:
> >>A Birt exception occured.
> >>
> >>Details shows the following:
> >>
> >>A Birt exception occurred.
> >> Plug-in Provider:Eclipse.org
> >> Plug-in Name:BIRT Data Engine
> >> Plug-in ID:org.eclipse.birt.data
> >> Version:1.0.1
> >> Error Code:data.engine.JSScriptInvalid
> >> Error Message:Invalid Javascript expression. Source:
> >>ParamBinding(param1), line: 0, Expression:
> >>params["device_id"]
> >>Script engine error: ReferenceError: "params" is not defined.
> >>
> >>
> >>I am running Eclipse 3.1, JDK 1.5, Birt 1.0.1, EMF 2.1.0, GEF 3.1.0 on
> >>Windows XP.
> >>
> >>Any help would be appreciated!
> >>
> >>Thanks,
> >>
> >>Scott
> >
> >
> >
Re: Invalid Javascript expression when using a parameter for a report [message #102844 is a reply to message #102827] Wed, 28 December 2005 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tamosunas.comcast.net

Diana,

I will file a defect about the usability.

As far as the blank report goes, it's totally blank. Not even the labels
are showing up. When I go to preview, I don't even see the normal status
bar cranking along indicating it's processing the report. I tried
started eclipse with the -clean flag and no change.

Is there any other info I could provide you that might help?

Thanks,

Scott

Diana Peh wrote:
> Hi Scott,
>
> You should file a bug about this usability issue.
>
> As for why your report is blank, there are too many possibilities. Are there
> labels (static text) in your report that are also not showing up? Have you
> tried restarting Eclipse with -clean?
>
> Sorry I can't be more helpful.
> -Diana
>
> "Scott" <tamosunas@comcast.net> wrote in message
> news:dou3rq$8hc$1@utils.eclipse.org...
>
>>Hi Diana,
>>
>>Thanks for the help. That seemed to clear up those errors, although I
>>don't really understand why I cannot bind the params in the default
>>value when editing the data set as it allows me to do so, seems a little
>>counter-intuitive.
>>
>>However, now when I try to preview the report, it's coming up completely
>>blank. I have set the report paramater to a good known quantity and it's
>>completely empty. I tried this both in the Eclipse IDE and also in the
>>birt viewer. I looked in the logs for the birt viewer and didn't see
>>anything interesting. Any ideas why this might be happening?
>>
>>Thanks again,
>>
>>Scott
>>
>>Diana Peh wrote:
>>
>>>Hi Scott,
>>>
>>>Where did you bind the data set parameter to the report parameter? If
>
> you
>
>>>bound it in the data set editor (i.e., you set the default value of the
>
> data
>
>>>set parameter to the report parameter) you get an error.
>>>
>>>You bind a data set parameter to a report parameter at the table or list
>>>element level.
>>>1) Select the table that displays the data from the data set.
>>>2) In Property Editor, choose the Binding tab.
>>>3) The data set parameter you created is listed there. Bind it to the
>
> report
>
>>>parameter.
>>>
>>>Hope this helps.
>>>-Diana
>>>
>>>"Scott" <tamosunas@comcast.net> wrote in message
>>>news:doseho$7s6$1@utils.eclipse.org...
>>>
>>>
>>>>Hello,
>>>>
>>>>I created a report, in in my data set, I added a SQL query with a
>>>>parameter. I added the ? in the query and it asked me to fill in a
>>>>parameter. Fine. I then bound the parameter to a Report Parameter and
>>>>this seemed to work. However, now when I try to do just about anything
>>>>(edit data sets, preview report, add a new column) I get the following
>>>>popup with the error:
>>>>
>>>>Invalid Javascript expression. Source: ParamBinding(param1), line:0,
>>>>Expression:
>>>>params["device_id"]
>>>>Script engine error: ReferenceError: "params" is not defined.
>>>>
>>>>Reason:
>>>>A Birt exception occured.
>>>>
>>>>Details shows the following:
>>>>
>>>>A Birt exception occurred.
>>>> Plug-in Provider:Eclipse.org
>>>> Plug-in Name:BIRT Data Engine
>>>> Plug-in ID:org.eclipse.birt.data
>>>> Version:1.0.1
>>>> Error Code:data.engine.JSScriptInvalid
>>>> Error Message:Invalid Javascript expression. Source:
>>>>ParamBinding(param1), line: 0, Expression:
>>>>params["device_id"]
>>>>Script engine error: ReferenceError: "params" is not defined.
>>>>
>>>>
>>>>I am running Eclipse 3.1, JDK 1.5, Birt 1.0.1, EMF 2.1.0, GEF 3.1.0 on
>>>>Windows XP.
>>>>
>>>>Any help would be appreciated!
>>>>
>>>>Thanks,
>>>>
>>>>Scott
>>>
>>>
>>>
>
>
Re: Invalid Javascript expression when using a parameter for a report [message #102860 is a reply to message #102844] Wed, 28 December 2005 17:19 Go to previous message
Eclipse UserFriend
Scott,

If I knew more about the log files, I'd be able to suggest where to look for
troubleshooting info. Unfortunately, I don't.

Have you isolated the problem to this specific report? That is, do other
reports display? If the error is report-specific, maybe try re-creating it?
Test it as you go along, so when you encounter the problem again, you'll
know what action caused it.

-Diana

"Scott" <tamosunas@comcast.net> wrote in message
news:dov03o$jm0$1@utils.eclipse.org...
> Diana,
>
> I will file a defect about the usability.
>
> As far as the blank report goes, it's totally blank. Not even the labels
> are showing up. When I go to preview, I don't even see the normal status
> bar cranking along indicating it's processing the report. I tried
> started eclipse with the -clean flag and no change.
>
> Is there any other info I could provide you that might help?
>
> Thanks,
>
> Scott
>
> Diana Peh wrote:
> > Hi Scott,
> >
> > You should file a bug about this usability issue.
> >
> > As for why your report is blank, there are too many possibilities. Are
there
> > labels (static text) in your report that are also not showing up? Have
you
> > tried restarting Eclipse with -clean?
> >
> > Sorry I can't be more helpful.
> > -Diana
> >
> > "Scott" <tamosunas@comcast.net> wrote in message
> > news:dou3rq$8hc$1@utils.eclipse.org...
> >
> >>Hi Diana,
> >>
> >>Thanks for the help. That seemed to clear up those errors, although I
> >>don't really understand why I cannot bind the params in the default
> >>value when editing the data set as it allows me to do so, seems a little
> >>counter-intuitive.
> >>
> >>However, now when I try to preview the report, it's coming up completely
> >>blank. I have set the report paramater to a good known quantity and it's
> >>completely empty. I tried this both in the Eclipse IDE and also in the
> >>birt viewer. I looked in the logs for the birt viewer and didn't see
> >>anything interesting. Any ideas why this might be happening?
> >>
> >>Thanks again,
> >>
> >>Scott
> >>
> >>Diana Peh wrote:
> >>
> >>>Hi Scott,
> >>>
> >>>Where did you bind the data set parameter to the report parameter? If
> >
> > you
> >
> >>>bound it in the data set editor (i.e., you set the default value of the
> >
> > data
> >
> >>>set parameter to the report parameter) you get an error.
> >>>
> >>>You bind a data set parameter to a report parameter at the table or
list
> >>>element level.
> >>>1) Select the table that displays the data from the data set.
> >>>2) In Property Editor, choose the Binding tab.
> >>>3) The data set parameter you created is listed there. Bind it to the
> >
> > report
> >
> >>>parameter.
> >>>
> >>>Hope this helps.
> >>>-Diana
> >>>
> >>>"Scott" <tamosunas@comcast.net> wrote in message
> >>>news:doseho$7s6$1@utils.eclipse.org...
> >>>
> >>>
> >>>>Hello,
> >>>>
> >>>>I created a report, in in my data set, I added a SQL query with a
> >>>>parameter. I added the ? in the query and it asked me to fill in a
> >>>>parameter. Fine. I then bound the parameter to a Report Parameter and
> >>>>this seemed to work. However, now when I try to do just about anything
> >>>>(edit data sets, preview report, add a new column) I get the following
> >>>>popup with the error:
> >>>>
> >>>>Invalid Javascript expression. Source: ParamBinding(param1), line:0,
> >>>>Expression:
> >>>>params["device_id"]
> >>>>Script engine error: ReferenceError: "params" is not defined.
> >>>>
> >>>>Reason:
> >>>>A Birt exception occured.
> >>>>
> >>>>Details shows the following:
> >>>>
> >>>>A Birt exception occurred.
> >>>> Plug-in Provider:Eclipse.org
> >>>> Plug-in Name:BIRT Data Engine
> >>>> Plug-in ID:org.eclipse.birt.data
> >>>> Version:1.0.1
> >>>> Error Code:data.engine.JSScriptInvalid
> >>>> Error Message:Invalid Javascript expression. Source:
> >>>>ParamBinding(param1), line: 0, Expression:
> >>>>params["device_id"]
> >>>>Script engine error: ReferenceError: "params" is not defined.
> >>>>
> >>>>
> >>>>I am running Eclipse 3.1, JDK 1.5, Birt 1.0.1, EMF 2.1.0, GEF 3.1.0 on
> >>>>Windows XP.
> >>>>
> >>>>Any help would be appreciated!
> >>>>
> >>>>Thanks,
> >>>>
> >>>>Scott
> >>>
> >>>
> >>>
> >
> >
Previous Topic:Http Status 500 - N20051227
Next Topic:Modifying a report design with the API
Goto Forum:
  


Current Time: Thu Jun 05 15:42:15 EDT 2025

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

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

Back to the top