0

タイトルがやや混乱していますが、私は困惑しています。SSRS 2008 - URLをアンパサンドでエンコードするためにjavascriptを使用

デフォルトのメールクライアント(この場合はGoogleがOutlookです)を開き、クリック可能なURLをフォーマットするためのクリック可能なリンクがあります。 URLにアンパサンドが含まれていない場合は、99%の時間がかかります。 &を%26と置き換えて&としました。アンパサンドがどこにあるかはまだ分かりません。 SSRSで

私はあなたがCHR()関数を使用することができると思うハイパーリンク式

=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

として、私は、このセットアップを持っている -

"javascript:void(window.open('"+ replace(Fields!EmailShippingURL.Value, "&", chr(38)) + "','_blank'))" 

またはJavaScriptエスケープ関数 -

"javascript:void(window.open('"+ replace(Fields!EmailShippingURL.Value, "&", "'+escape('&')+'") + "','_blank'))" 
関連する問題