略有混乱的头衔,但我仍然难过。
我有一个可点击的链接,可以打开您的默认邮件客户端(在本例中,我们的是Outlook),并格式化可点击的URL。它的工作时间很长,除非URL中有一个&符号。我已经取代了&与%26和&没有运气。 URL仍然会截断&符号的位置。
在SSRS中,我将此设置作为超链接表达式
=iif(Fields!EmailShippingURL.Value="URL Unavailable" OR Fields!ShippingURL.Value="URL Unavailable" OR isNothing(Fields!EmailShippingURL), "javascript:(alert('The shipment info cannot be processed. There is either no email address for this contact or invalid shipping information.'))", "javascript:void(window.open('"+ Fields!EmailShippingURL.Value + "','_blank'))")
答案 0 :(得分:0)
我认为你可以使用chr()函数 -
"javascript:void(window.open('"+ replace(Fields!EmailShippingURL.Value, "&", chr(38)) + "','_blank'))"
或javascript转义函数 -
"javascript:void(window.open('"+ replace(Fields!EmailShippingURL.Value, "&", "'+escape('&')+'") + "','_blank'))"