function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nishad BashaNishad Basha 

Error: Could not resolve the entity from <apex:outputField> value binding '{!contact.firstName}'. <apex:outputField> can only be used with SObjects, or objects that are Visualforce field component resolvable.

here iam getting this error how to solve could you please  give some ideas
KaranrajKaranraj
Nishad - Can you share your code here? it will be easy for us to assist you. As per the error description you are trying bind the value of non-sObject to the <apex:Outputfield> use <apex:outputText> instead of that. <apex:OutputField> will bind values only from the Standard objects(Account,contact etc.) and your custom object field values.
 
ranjit Pisal 10ranjit Pisal 10
Apex class - 
public List<map<string,string>> ListofMap{get;set;}
 ListofMap= (List<Map<String, String>>)JSON.deserializeUntyped(Object.field__c);

VF Page :-

<apex:pageblock >
                            <apex:pageblockSection columns="1">
                                <apex:pageBlockTable value="{!ListofMap}" var="mapvar">
                                  
                                     <apex:column >
                                      <apex:facet name="header"> Name</apex:facet>
                                      <apex:outputField value="{!mapvar.get('Name')}"/> 
                                     </apex:column>                       
                                    
                                 </apex:pageBlockTable>
                             </apex:pageblockSection>
                         </apex:pageblock>
 
ishchopraishchopra
Hello there,

I need inline Edit but i am getting the same error as i am not able to use outputfield instead of outputText, below is the snapshot of the code but i definetly need inline edit support

how to resolve this? please help
 
<apex:column headerValue="Address" rendered="{!$Setup.CampaignColumns__c.ADDRESS__c}">
                            <apex:outputText value="{!lpt.ADDRESS}" escape="false"/>
                        </apex:column>
                       
                        <apex:column headerValue="Email" rendered="{!$Setup.CampaignColumns__c.EMAIL__c}">
                            <apex:outputText value="{!lpt.EMAIL}" escape="false"/>
                      <apex:facet name="header">

                       <apex:commandLink action="{!sortByEmail}" Value="Email" rerender="calls"/>
</apex:facet>

                        </apex:column>
                        <apex:column value="{!lpt.PHONE}" headerValue="Phone" rendered="{!$Setup.CampaignColumns__c.PHONE__c}" />
                        
                           <!-- Added by Ankur -->
      <apex:inlineEditSupport event="ondblClick" />
                      <!--  showOnEdit="saveButton,cancelButton" hideOnEdit="editButton" />  -->
  <!-- Until Here -->
                        <apex:column headerValue="Fax" rendered="{!$Setup.CampaignColumns__c.FAX__c}">
                            <apex:outputfield value="{!lpt.FAX}"/>
                            <!-- <apex:outputText value="{!lpt.FAX}" escape="false"/> -->
</apex:column>
                        <apex:inlineEditSupport event="ondblClick"  showOnEdit="SaveButton" hideOnEdit="massdelete" />