Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
1,451

A while back I was asked to allow my users to enter their patient address and then use the default address to generate google directions for them. With the help of the community here I was able to use the following code to create an instance of inet object:

inetli_net

GetContextService("Internet", li_net)

li_net.HyperlinkToURL( ls_URL )

I built the ls_URL from our default address that was basically like:

300 east long lake road, city name (with a space in it)

However when I passed this address (with spaces) to INet HperlinkToURL method google maps will not generate the correct directions. I found out that in order for right google directions to be generated using INet object HperLinkToURL method I must stuff all spaces in my address with '%20' and only then a space will be treated as space by google webservice that returns the proper address. This was shared with the community via the forum discussion as well but since this was something I thought I can create a document for and make it permanent for other people to benefit. I hope this will help. 

2 Comments
Labels in this area