Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Visualforce page which displays Account Id and User First Name with "inlineEditSupport"

Visulaforce Page :

 <apex:dataList value="{!resobj}" var="a">
  <apex:inLineEditSupport event="ondblclick" showOnEdit="Update"/>
      <apex:outputField id="OrgId" value="{!a.BAccounts.Id}"/>
      <apex:outputField id="name" value="{!a.usr.FirstName}"/>
  <apex:commandButton value="GetData" id="submit" action="{!getdata}"/>

After get the result iam able to edit firstname but not able to edit Account Id. why I am not able to edit Id in the VisualForce Page?

share|improve this question
up vote 0 down vote accepted

The editability will depend on the type of the relationship.

If it is "Master-Detail Relationship" without "Allow reparenting" the field will not be editable because the objects are tightly tied together in terms of things like ownership and cascading deletes.

But if it is "Lookup Relationship" (or "Master-Detail Relationship" with "Allow reparenting") it should be editable.

share|improve this answer

Account ID is always a read only field. You cannot edit it. If you want to change the account Id you have to load the page again with that particular Account.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.