You need to sign in to do that
Don't have an account?
Create Controller
Hi,
I have to Create the HotelRemoter Controller. For this here is code:
global with sharing class HotelRemoter {
@RemoteAction
global static List<Hotel__c> findAll() {
return [SELECT Id, Name, Location__Latitude__s, Location__Longitude__s
FROM Hotel__c];
}
}
I got this error: Error: Compile Error: No such column 'Location__Latitude__c' on entity 'Hotel__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. at line 5 column 16
I have to Create the HotelRemoter Controller. For this here is code:
global with sharing class HotelRemoter {
@RemoteAction
global static List<Hotel__c> findAll() {
return [SELECT Id, Name, Location__Latitude__s, Location__Longitude__s
FROM Hotel__c];
}
}
I got this error: Error: Compile Error: No such column 'Location__Latitude__c' on entity 'Hotel__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. at line 5 column 16
Then try the query on Developer Console, go to you name --> click "Developer Console"
Check snapshot how to check your query
All Answers
Then try the query on Developer Console, go to you name --> click "Developer Console"
Check snapshot how to check your query
have a look to following link
http://salesforce.stackexchange.com/questions/1682/no-such-column-location-c-using-geolocation-field-beta