Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

trim URL in mscrm 2011

$
0
0

Hi ,

I have written a Jscript inside the Ribbon button of Account to generating the URL.
My code and URL  is working fine in IE 9 when I'm clicking the button but when I'm using IE 10 I'm getting spaces in between Value and Name.

Please find the below code for the same.

getAccountRibbon = function(AccId) {
    LoadWebResource("jscript/5.4/library.js");
  
    getURL = FetchSingleValue("new_details", "new_root", "new_name", "Ribbon_URL", false);
    AcountUID = AccountId.replace("{", "").replace("}", "");
    Value = FetchSingleValue("account", "new_value", "accountid", AcountUID, false);
    AcName = FetchSingleValue("account", "address1_name", "accountid", AcountUID, false);
    UrlParam = URIComponent(AcName );
    URL = getURL + "Val=" +Value+"&NAME=" + UrlParam ;
    window.open(URL);

}

Thanks,


Thanks, Toushu


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>