Hello,
I'm trying to add a parameter to my JUMP TO URL but it doesn't work.
basiclly i'm useing javascript there:
javascript:window.open('http:www.a.com?num=XXX');
i want to change the XXX with a value from the dataset.
I tried - javascript:window.open('http:www.a.com?num= + Fields!ME.Value ');
or - javascript:window.open('http:www.a.com?num= & Fields!ME.Value ');
it didn't worked :(
any help?
=window.open('http:www.a.com?num=" & Fields!ME.Value & "'),_top"
Ayzan
|||Thank, I manage to do it with a + .The problem was that i wrote it as a line with out inverted commas (") and with out an equel sign (=) before.
silly me :)
Thanks for your replay.
Roy.|||Thank, I manage to do it with a + .
The problem was that i wrote it as a line with out inverted commas (") and with out an equel sign (=) before.
silly me :)
Thanks for your replay.
Roy.|||
Hi !
I'm struggling with getting this to work. In my "Jump to URL" I've got this expression (following your example)
=window.open('http://lsd.catchcom.com/sok/service_info.php?item_id=" & Fields!CATCHREF.Value & "'),_top"
Designer Preview complains with ;
[rsInvalidCharacterInExpression] The Hyperlink expression for the textbox ‘CATCHREF’ contains a colon or a line terminator. Colons and line terminators are not valid in expressions.
I've also tried ;
http://lsd.catchcom.com/sok/service_info.php?item_id= & Fields!CATCHREF.Value
But then I don't get the relevant filedvalue put into the resulting url. I only get the text "...item_id=%20&%20Fields!CATCHREF.Value"
Any suggestions ?
By the way - do I have to do some config or similar to get javascript to work ?
Omar
|||hi,
you dont need any javascript or anything.
in the jump to url just give "http://lsd.catchcom.com/sok/service_info.php?item_id"= & Fields!CATCHREF.Value
The reason why you might get that error is probably becuase the filed!catchref may not be of type string.
you need to make sure that it is of type varchar or else cast it to string.
Thanks,
Sai Abhiram Bandhakavi
|||Did you get this javascript window.open working?I am looking for this solution too.
No comments:
Post a Comment