Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Web Viewer


DocD
 Share

Recommended Posts

Hi All,

 

Yes FM Advanced 8.5 seems to be the real thing and the cat's meow! Can't wait for 9.0....

 

I was looking for the sample of the calculations that can dump information into both Google and MapQuest for directions from one location to another...any suggestions are more than welcomed! Basically would like to use the new Web Viewer to offer directions quickly and easily to my office from a new patient's home so my address would be static...

 

Thanks all!

 

DocD Oh Really!

Link to comment
Share on other sites

I hadn't thought of doing this but I have now.

 

Mapquest is a little more complex than google, but this works well for Google Maps. Mapquest seems to playing catch up with Google maps now.

 

Use this if you have multiple offices (you have a table for office):

 

"http://local.google.com/maps?f=d&hl=en&saddr=" & office::address & " " & office::city & " " & office::State & "&daddr=" & Client::Address & " " & Client::City & " " & Client::State & "&ie=UTF8&om=0"

 

 

Use this if the office address is always the same:

 

"http://local.google.com/maps?f=d&hl=en&saddr=" & "123 North Main Street Anytown Florida" & "&daddr=" & Client::Address & " " & Client::City & " " & Client::State & "&ie=UTF8&om=0"

 

 

use these in the set web viewer script step, go to url.

 

This will work good. The client asks how do I get to your office? After the client information is entered in the database you will have a scripted a button that takes you to a layout with a web viewer and display the directions. Then the user can click email within the web viewer and email the instructions or just read the directions to the client.

 

 

JR

Link to comment
Share on other sites

I got that backwards. The "saddr" is the start address and the "daddr" is the destination address. You would need to reverse those to get a map to the office. In my case I want a map to the jobsite.

 

Use this if you have multiple offices (you have a table for office):

 

"http://local.google.com/maps?f=d&hl=en&saddr=" & office::address & " " & office::city & " " & office::State & "&daddr=" & Client::Address & " " & Client::City & " " & Client::State & "&ie=UTF8&om=0"

 

 

Use this if the office address is always the same:

 

"http://local.google.com/maps?f=d&hl=en&saddr=" & "123 North Main Street Anytown Florida" & "&daddr=" & Client::Address & " " & Client::City & " " & Client::State & "&ie=UTF8&om=0"JR

 

 

Now here is the one for mapquest: (this is from client location to the office)

"http://www.mapquest.com/directions/main.adp?1a=" & Client::Address & "&1c=" & Client::City & "&1s=" & Client::State & "&1z=" & Client::Zip & "&2a=" & Office::Address & "&2c=" & Office::City & "&2s=" & Office::State & "&2z=" & Office::Zip & "&r=f&go=1"

 

Mapquest seems to require the zip or you get an error.

 

JR

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use