You need to sign in to do that
Don't have an account?
Muhammad Wasim
Mileage Tracker App - Custom VisualForce page problem
Error Error: Unknown property 'Contact__c.Miles__c' referenced in MyMileagePage
<apex:page > <!-- Begin Default Content REMOVE THIS --> <h1>{!$User.FirstName}'s Mileage Perspective</h1> <apex:detail/> <apex:detail subject="{!Contact__c.Miles__c}" /> </apex:page>
something like:
<apex:page standardController="contact" extensions="testemail">
<apex:form>
<apex:commandButton value="SendEmail" accesskey="{!sendemail}"/>
</apex:form>
</apex:page>
All Answers
something like:
<apex:page standardController="contact" extensions="testemail">
<apex:form>
<apex:commandButton value="SendEmail" accesskey="{!sendemail}"/>
</apex:form>
</apex:page>
you have not associated any Standard or custom controller to this Page to which the field "Contact__c.Miles__c " belongs.
include the Controller Like:
If standard controller:
<apex:page standardcontroller="Your_Controller_Name">
if custom controller:
<apex:page controller="Your_Controller_Name">.
please mark it best if it helps you.
Thanks & Regards ,
Grazitti Team
when we use Standerd controller we dont need to use __c in sufix. You can always check API name of standerd controller at below URL.. :)
https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_list.htm
Enjoy..