2/23/2025 2:59:04 PM
|
|
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!
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.
|
|
|
|
Use google maps in web client
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 |
|
|
|
Re: Use google maps in web client
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 |
|
|
|
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!
|
|
|
|
|
|
|
|