• Mohammed Tareque Shaikh
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
<apex:page standardController="Account">
    <apex:form>    
    <apex:pageBlock title="Edit Account">
        <apex:pageMessages/>
        <apex:pageBlockSection columns="2">
            <apex:inputField value="{!Account.owner.name}"/>
            <apex:inputField value="{!Account.name}"/>  
            <apex:inputField value="{!Account.Parentid}"/>
            <apex:inputField value="{!Account.AccountNumber}"/>
            <apex:inputField value="{!Account.Site}"/>
            <apex:inputField value="{!Account.Type}"/>
            <apex:inputField value="{!Account.Industry}"/>
            <apex:inputField value="{!Account.Rating}"/>
            <apex:inputField value="{!Account.Phone}"/>
            <apex:inputField value="{!Account.Fax}"/>
            <apex:inputField value="{!Account.Website}"/>
            <apex:inputField value="{!Account.TickerSymbol}"/>
            <apex:inputField value="{!Account.Ownership}"/>
            <apex:inputField value="{!Account.NumberOfEmployees}"/>
            <apex:inputField value="{!Account.Sic}"/>
        </apex:pageBlockSection>
        <apex:pageBlockButtons>
            <apex:commandButton action="{!save}" value="Save"/>        
        </apex:pageBlockButtons>          
    </apex:pageBlock>
   </apex:form>       

    <apex:pageBlock title="Contacts">
        <apex:pageBlockSection title="Related Lists">
                 <apex:pageBlockTable value="{!Account.Contacts}" var="Contact" >
                     <apex:column>
                         <apex:outputLink value="{!URLFOR($Action.Contact.Edit, contact.Id)}">
                             Edit
                         </apex:outputLink>
                     &nbsp;
                        <apex:outputLink value="{!($Action.Contact.Delete, contact.Id)}">
                             Delete
                         </apex:outputLink>
                     </apex:column>
                     <apex:column value="{!Contact.Name}"/>  
                     <apex:column value="{!Contact.Email}"/>
                     <apex:column value="{!Contact.Title}"/>
                     <apex:column Value="{!Contact.Phone}"/>
                 </apex:pageBlockTable>            
         </apex:pageBlockSection>
    </apex:pageBlock>

</apex:page>



I have created a page for a account and its related list. Related list will have a link for edit and delete contact also. But  I am facing an error can you please help me to resolve this error.
The error is: Unknown property 'AccountStandardController.contact'
<apex:page standardController="Account">
    <apex:form>    
    <apex:pageBlock title="Edit Account">
        <apex:pageMessages/>
        <apex:pageBlockSection columns="2">
            <apex:inputField value="{!Account.owner.name}"/>
            <apex:inputField value="{!Account.name}"/>  
            <apex:inputField value="{!Account.Parentid}"/>
            <apex:inputField value="{!Account.AccountNumber}"/>
            <apex:inputField value="{!Account.Site}"/>
            <apex:inputField value="{!Account.Type}"/>
            <apex:inputField value="{!Account.Industry}"/>
            <apex:inputField value="{!Account.Rating}"/>
            <apex:inputField value="{!Account.Phone}"/>
            <apex:inputField value="{!Account.Fax}"/>
            <apex:inputField value="{!Account.Website}"/>
            <apex:inputField value="{!Account.TickerSymbol}"/>
            <apex:inputField value="{!Account.Ownership}"/>
            <apex:inputField value="{!Account.NumberOfEmployees}"/>
            <apex:inputField value="{!Account.Sic}"/>
        </apex:pageBlockSection>
        <apex:pageBlockButtons>
            <apex:commandButton action="{!save}" value="Save"/>        
        </apex:pageBlockButtons>          
    </apex:pageBlock>
   </apex:form>       

    <apex:pageBlock title="Contacts">
        <apex:pageBlockSection title="Related Lists">
                 <apex:pageBlockTable value="{!Account.Contacts}" var="Contact" >
                     <apex:column>
                         <apex:outputLink value="{!URLFOR($Action.Contact.Edit, contact.Id)}">
                             Edit
                         </apex:outputLink>
                     &nbsp;
                        <apex:outputLink value="{!($Action.Contact.Delete, contact.Id)}">
                             Delete
                         </apex:outputLink>
                     </apex:column>
                     <apex:column value="{!Contact.Name}"/>  
                     <apex:column value="{!Contact.Email}"/>
                     <apex:column value="{!Contact.Title}"/>
                     <apex:column Value="{!Contact.Phone}"/>
                 </apex:pageBlockTable>            
         </apex:pageBlockSection>
    </apex:pageBlock>

</apex:page>



I have created a page for a account and its related list. Related list will have a link for edit and delete contact also. But  I am facing an error can you please help me to resolve this error.
The error is: Unknown property 'AccountStandardController.contact'