You need to sign in to do that
Don't have an account?
Ram S 49
Unable to ruin a visual page.
Hi all, I am unable to run the below code in the visualPage. Kindly help me.
I am getting the below error.
"Unknown property 'Project__cStandardController.project' "
Here is the code
<apex:page standardController="Project__c">
<apex:form>
<h1>Project Quick Updtae</h1>
<br/>
Name : <apex:outputField value="{!project__c.Name}"/>
<br/>
Status:<apex:inputField value="{!project__c.Status__c}"/>
<br/>
Stage : <apex:inputField value="{!project__c.Stage__c}"/>
<br />
End Date : <apex:inputField value="{!project.End_Date__c}"/>
<br/>
Invoiced : <apex:inputField value="{!project.Invoiced__c}"/>
<br/>
<apex:commandButton value = "Update" action="!save"/>
</apex:form>
</apex:page>
I am getting the below error.
"Unknown property 'Project__cStandardController.project' "
Here is the code
<apex:page standardController="Project__c">
<apex:form>
<h1>Project Quick Updtae</h1>
<br/>
Name : <apex:outputField value="{!project__c.Name}"/>
<br/>
Status:<apex:inputField value="{!project__c.Status__c}"/>
<br/>
Stage : <apex:inputField value="{!project__c.Stage__c}"/>
<br />
End Date : <apex:inputField value="{!project.End_Date__c}"/>
<br/>
Invoiced : <apex:inputField value="{!project.Invoiced__c}"/>
<br/>
<apex:commandButton value = "Update" action="!save"/>
</apex:form>
</apex:page>
Greetings to you!
You need to use Project__c instead of project as Project is a custom object.
Try below code:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
There is a very small mistake.
You are supposed to used __c to refer a custom field and I know that you know this thing very well.
You are missing __c on these two lines.
End Date : <apex:inputField value="{!project.End_Date__c}"/>
<br/>
Invoiced : <apex:inputField value="{!project.Invoiced__c}"/>
Replace 'project' with 'project__c' and you are fine.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com