cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript Error CR 2008

Former Member
0 Kudos

Hi,

Im getting a javascript error in this line.

The function is TreeWidget_getHTML

for (var i in sub)

a[j++]=sub<i>.getHTML(o.initialIndent,i==0)

a[j+]='</span>'o.endHTML()

The above function is in the file \aspnet_client\system_web\2_0_50727\crystalreportviewers12\allInOne.js

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ashwin,

Please let us know your visual studio version?

Issue is on development machine or deployment?

Regards,

Shweta

Former Member
0 Kudos

Hi Shwetha,

Sorry for not giving exact details.

VS 2005.

.NET 2.0

DEV Machine.

CR 2008

Former Member
0 Kudos

Could you please explain more when exactly you are getting error?

Is reports work fine with Crystal Report designer?

Windows or web application?

Also please make sure that you have crystalviewers is located under c:\Program Files\Common Files\Business Objects\xx\ .

Regards,

Shweta

Former Member
0 Kudos

I can make the report work in the designer.

Also When I get this JS error, my IDE breaks at the javascript error, and If I move the execution to the next line to avoid the error, I can get it to show the report on the web page. But I cant do that if Im not debugging.

Also,

I have another sample report from Crystal datasets and that comes up fine. I dont know why...

The toolbar icons display is fine.

Former Member
0 Kudos

Please let us know the exact error message and when you are getting ( while viewing/printing/exporting/...)?

Regards,

Shweta

Former Member
0 Kudos

Object Doesnt support property or methiod at this line.

a[j++]=sub<i>.getHTML(o.initialIndent,i==0)

The Sub<i> has nothing in it except

?sub<i>

{...}

bindAsEventListener: {...}

bind: {...}

The sample report I mentioned earlier the same line of code sub<i> has many more properties and so it works.

This is for the sample report.

?sub<i>

{...}

elemPos: -1

expanded: false

generated: false

iconId: -1

iconSelId: -1

tooltip: null

customTooltip: false

iconAlt: null

isHTML: false

isCheck: false

checked: false

check: {...}

isChecked: {...}

checkCB: null

name: "Abu Dhabi"

par: null

userData: "0"

sub: {...}

treeView: {...}

id: 0

layer: null

plusLyr: null

icnLyr: null

checkElem: null

domElem: null

toggleLyr: null

blackTxt: "treeNormal"

grayTxt: "treeGray"

selectedClass: "treeSelected"

nonselectedClass: "treeNormal"

feedbackDDClass: "treeFeedbackDD"

hlClass: "treeHL"

help: null

getHTML: {...}

init: {...}

add: {...}

select: {...}

unselect: {...}

getNextPrev: {...}

getHiddenParent: {...}

nodeIndent: 0

getTooltip: {...}

getDragTooltip: {...}

change: {...}

deleteAll: {...}

setGrayStyle: {...}

isGrayStyle: {...}

findByData: {...}

findById: {...}

findInName: {...}

isIncomplete: false

querycompleteCB: null

setIncomplete: {...}

finishComplete: {...}

setEditable: {...}

showEditInput: {...}

isLeaf: {...}

isNode: {...}

isSelected: {...}

htmlWritten: false

showCustomTooltipCB: null

hideCustomTooltipCB: null

_children: {...}

groupPath: "0"

isVisible: true

leaf: true

groupName: "Abu Dhabi"

widgetType: "GroupTreeNode"

initOld: {...}

selectOld: {...}

expand: {...}

collapse: {...}

_setVisualStyle: {...}

delayedAddChild: {...}

addChild: {...}

_drilldown: {...}

_getChildren: {...}

_updateProperty: {...}

expandPath: "0"

isStatic: false

former_member208657
Active Contributor
0 Kudos

What web browser are you testing with? IE, Firefox, Opera, Safari, Chrome?

If this works with one report and not another you should concentrate on the differences. Does one have a subreport? What about parameters?

Start removing report objects from your report until it starts to work.

Former Member
0 Kudos

Im using IE 6.0 SP2

I can start removing the report objects one by one. Thanks for giving me this hint.

Former Member
0 Kudos

Thanks to everyone who helped me here.

That javascript error was from another script file from the MasterPage. That had some sort of collision I guess.

Works great now.

Thanks again

Aswin Dwarakanath

Former Member
0 Kudos

Hi there

We're having the same problem. Having trouble finding where the issue is. Can you offer any help as to what on the masterpage was wrong, that we might look for?

Thanks in advance!

Tom Bonk

Answers (1)

Answers (1)

ted_ueda
Employee
Employee
0 Kudos

So what error are you getting?

Sincerely,

Ted Ueda