Home
Analytics
ReferenceError: "dataSetRow" is not defined.
jasonws
Hey, in the preview for a report I get the following error. Strange thing is, it references code that I have since replaced (I created a computed column with the same Javascript code). Any ideas? Thanks! -Jason
The following items have errors:
Grid (id=415):
+ A BIRT exception occurred: Error evaluating Javascript expression. Script engine error. ReferenceError: "dataSetRow" is not defined.
Script source: , line: 0, text: dataSetRow["SHIP TO CITY"] + ", " + dataSetRow["SHIP TO STATE"] + " " + dataSetRow["SHIP TO ZIP"]. See next exception for more information.
Error evaluating Javascript expression. Script engine error. ReferenceError: "dataSetRow" is not defined.
Script source: , line: 0, text: dataSetRow["SHIP TO CITY"] + ", " + dataSetRow["SHIP TO STATE"] + " " + dataSetRow["SHIP TO ZIP"]. See next exception for more information.
Find more posts tagged with
Comments
mwilliams
Hi Jason,
If you click on your grid and go to the binding tab, is this binding there?
jasonws
Hey Michael, it wasn't, but when I put in the binding (Property Editor Grid -> Binding tab -> Data Set -> chose Invoice from dropdown list) it still shows the exact same error. I then put in the same binding on all grids with data. Funny thing is, the preview otherwise looks fine, and the pdf does too. -J<br />
<br />
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="69569" data-time="1287605444" data-date="20 October 2010 - 01:10 PM"><p>
Hi Jason,<br />
<br />
If you click on your grid and go to the binding tab, is this binding there?<br /></p></blockquote>
mwilliams
Can you attach your report? What is your BIRT version?
jasonws
Here you go. I'm using 2.6.1.<br />
<br />
Thanks!<br />
<br />
Jason<br />
<br />
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="69595" data-time="1287675579" data-date="21 October 2010 - 08:39 AM"><p>
Can you attach your report? What is your BIRT version?<br /></p></blockquote>
mwilliams
Looks like it didn't attach.
jasonws
Okay, lets try this again... Thanks!
mwilliams
Grid 415 is in your master page header. If you select the outer grid in the master page header that has the other 2 grids in it and select the binding tab, you'll see that there are 2 bindings. Though the grid is not bound to a dataSet, these bindings call dataSetRow. This throws the error because they don't have access to any dataSet rows. If you delete these bindings, that error should disappear.
Let me know.
jasonws
Ahh, gotcha! I hadn't even looked in that grid, since I don't seem to be able to select it without going through the outline. I really appreciate your help with this. Thanks! -J
mwilliams
Not a problem!