Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Use google maps in web client
Alexander Pfingstl
Posts: 43
 
Use google maps in web clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Jun 08 4:32 AM
Hi All,
I want to either change the map quest button to use google maps or add a new button which opens the address in google maps.
Has someone done this and can share the code for the button?
Thanks for help!
Alexander
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Use google maps in web clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jul 08 3:41 AM
Hi,

Put a new button on, tinkering with the existing button caused me headaches. Add a javascript event to the button on the quickformload, that will cause a window.open...

In the URL for Window.Open build a dynamic string to take into the account the Companies/Contacts address, to look something like (you can see where you need to put the dynamic address in):

http://maps.google.com/maps?f=q&hl=en&geocode=&q=8800+N.+Gainey+Center+Drive,+Suite+200,+Scottsdale,+Arizona+85258&sll=37.0625,-95.677068&sspn=32.059939,61.699219&ie=UTF8&ll=33.567377,-111.913218&spn=0.008224,0.015063&z=16&iwloc=addr

So for the Saleslogix headquarters address, the quickformload should look a little like:

string URL;

string dynamicAddress;

dynamicAddress = //Loop throught the Address entity and build up the address, with "+" in between each element.

URL = "window.open(\"http://maps.google.com/maps?f=q&hl=en&geocode=&q=";

URL += dynamicAddress;

URL += &sll=37.0625,-95.677068&sspn=32.059939,61.699219&ie=UTF8&ll=33.567377,-111.913218&spn=0.008224,0.015063&z=16&iwloc=addr\")";

BUTTONNAME.Attributes.Add("onclick",dynamicAddress);


This is all off the top of my head as I havent actually tried it but hopefully it should give yout the idea if there are a few syntax errors here.

Cheers,
Nick
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 3:06:53 PM