views:

770

answers:

2

Group, I am struggling with syntax. I have dynamic links in my report and when the link is clicked I want the window to open up target="_blank"

I have tried the following, but I must be missing a ' or " somewhere because I am having no luck. The parameters are throwing me off.

="javascript:void(window.open('http://server/folder/filename.aspx?ds='& Parameters!UserName.Value & '&bu=' & Fields!Business_Unit.Value & '&in=' & Fields!Item_No.Value,'_blank'))"

="http://server/folder/filename.aspx?ds="& Parameters!UserName.Value & "&bu="& Fields!Business_Unit.Value & "&in=" & Fields!Item_No.Value &rc:LinkTarget=_blank

Any suggestions?

A: 

you need to either use window.open, or target

<a href="http://..." target="_blank" />
or
javascript:void(window.open('http://...'));

Not both. If you are building your URL, then build it before injecting it into the document.

Tracker1
A: 

Try this:

="javascript:void(window.open('http://server/folder/filename.aspx?ds=" & Parameters!UserName.Value & "&bu=" & Fields!Business_Unit.Value & "&in=" & Fields!Item_No.Value & "','_blank'))"
LeBleu
doesn't seem to be working...
In what specific way is it failing?
LeBleu