function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sf_123sf_123 

Apex page customization for Google Maps

Hi,

I am very new to salesforce.I installed the Salesforce International Mapping using Google maps
It works fine for accounts and contacts.I want to reuse this for a custom object Sites.

I understand that using the Component GoogleMapsInternational,the pages for account and contact are created.
I tried to reuse this component and create a page for Sites as shown below:

 

 

<apex:page standardController="Sites__c">

 

<c:GoogleMapsInternational iconColour="#8370C2"

        address="{!Sites.Address__c} "

 />

 

</apex:page>

                                                                    

 

 

 

But i get the error

Error: Unknown property 'Sites__cStandardController.Sites'


Please help.

Best Answer chosen by Admin (Salesforce Developers) 
David81David81

I think you want

 

{!Sites__c.Address__c}

 

 

All Answers

Shailesh DeshpandeShailesh Deshpande

can you post the code for your controller?

sf_123sf_123

Controller meaning the component code?

Shailesh DeshpandeShailesh Deshpande

yes..your components class and class for VF page

David81David81

I think you want

 

{!Sites__c.Address__c}

 

 

This was selected as the best answer
sf_123sf_123

Thanks! This runs perfectly now!!!!!

sf_123sf_123

Thanks!