• Firoz Akhtar
  • 0 Points
  • Member since 2014

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 0
Hello guys.

Need help on this, I am getting this error while saving my vf page code.any idea on this how to resolve this.below is the class and page code.Here I want to display  Name field of User object on VF page. there is lookup relationship between User and Employee object  and User is parent.
Please help me on this.Thanks in advance.

<apex:pageblockTable value="{!allemployees}" var="emp">
    <apex:column >
      <apex:facet name="header">
          <apex:outputText value="Full name"/>
     <apex:outputField value="{!emp.User__r.Name}"/>

public List<Employee_Detail__c> getallemployees() 
         allemployees= Database.Query('select Image__c,User__r.name from Employee_Detail__c)
       return allemployees;