Hi,
I am working on oData.
I need to extract customer address as a link (need to add cust_Address hyperlink in oData and when user click on hyperlink; google map will be open)
Example:
"@odata.etag":
"W/\"JzMjg3NTQwNTksNTYzNzE0NjA3Nic
=\"","OrderNumber":"XYZ-001","CustomerAddress":"Cust_Address"<How to add hyperlink?>,"Quantity":2}
I am able to get customer address in google map but needs your help to wrap into hyperlink.
#DEFINE.MapURL('www.google.com/.../')
#DEFINE.comma(',')
#DEFINE.newLine('\n')
str address;
address = 'Lahartara' + #comma +
'Varanasi' + #comma +
'Uttar Pradesh' + #comma +
'221002' + #comma +
'IND';
// Replace the newline with comma
address = strReplace(address, #newline, #comma);
// URL encode
address = System.Web.HttpUtility::UrlEncode(address);
// Add the address to the URL
Info(strFmt("%1",#MapURL+ address));
Browser browser = new Browser();
browser.navigate(strFmt(#MapURL+ address));
// Info(strFmt('<html><body><a href=%1>VendorURL</a></body></html>', (#MapURL+ address)));
// new Browser().Navigate(strFmt(#MapURL+ address));