Click Map Button and get Location In d365fo x++
Click Map Button and get Location In d365fo x++
Code:
ublic static void mapIt(LogisticsPostalAddress _address)
{
str address;
const str mapUrl = 'http://www.bing.com/maps/default.aspx?where1=\%1';
const str comma = ',';
const str newLine = '\n';
if (_address)
{
address = _address.Address;
// Replace the newline with comma
address = strReplace(address, newline, comma);
// URL encode
address = System.Web.HttpUtility::UrlEncode(address);
// Add the address to the URL
Browser br = new Browser();
br.navigate((strFmt(mapUrl, address)), true);
}
}
Comments
Post a Comment