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
Arav SundarArav Sundar 

Apex:output panel error

i was a trying the below code and getting  an error can anyone please let me know what is the mistake i am doing the error is " Error: Unknown property 'AccountStandardController.Location' " what i could understand from the error is Location is not getting referenced pls help 

<apex:page standardController="Account">
 <apex:form >
  <apex:outputPanel id="locationPicker">
<apex:outputField value="{!Location.country}">
<apex:inlineEditSupport event="ondblClick" />
</apex:outputField>
</apex:outputpanel>
  </apex:form>
</apex:page>
mohan s 37mohan s 37
Hi Arav,
   Your page is entirely wrong, If you want to display the any standard object record you can, display those record by oassing the id of the record on url then your page will get displays output field value. So, change the binding value like this {!Account.Country} and pass the id in the url like https://your instance.visual.force.com.apex/yourpagename?id=accountrecordId. 
your instance like: c.ap2 or c.ap4
use following code
<apex:page standardController="Account">
 <apex:form >
  <apex:outputPanel id="locationPicker">
<apex:outputField value="{!Account.country}">
<apex:inlineEditSupport event="ondblClick" />
</apex:outputField>
</apex:outputpanel>
  </apex:form>
</apex:page>
Arav SundarArav Sundar
Mohan , 

https://c.ap2.visual.force.com/apex/Inline_Edit?id=00328000006fnUF As you said i have followed , when i do this it should display the field of the country but it just blanks