• Deepak Pandey 4
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
User-added image


i want to account lookup become picklist?
 
Error: Could not resolve the entity from <apex:inputField> value binding '{!a.Account.Id}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable.
code-<apex:page controller="wizard_class">
  <apex:form >
  <apex:pageblock title="Enter Account Details">
  <apex:pageblockButtons >
  <apex:commandButton value="Next Page" action="{!gotopage2}"/>
  </apex:pageblockButtons>
  <apex:pageblockSection >
    <apex:inputField value="{!a.Account.Id}" />
    <apex:inputfield value="{!a.Name}" />
  </apex:pageblockSection>
  </apex:pageblock>
  </apex:form>
</apex:page>
 
User-added image


i want to account lookup become picklist?
 
Error: Could not resolve the entity from <apex:inputField> value binding '{!a.Account.Id}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable.
code-<apex:page controller="wizard_class">
  <apex:form >
  <apex:pageblock title="Enter Account Details">
  <apex:pageblockButtons >
  <apex:commandButton value="Next Page" action="{!gotopage2}"/>
  </apex:pageblockButtons>
  <apex:pageblockSection >
    <apex:inputField value="{!a.Account.Id}" />
    <apex:inputfield value="{!a.Name}" />
  </apex:pageblockSection>
  </apex:pageblock>
  </apex:form>
</apex:page>