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
davedbdavedb 

Displaying of the edit-page

Hello Board,

 

with the following code, i can display the detail view of accounts:

 

 <apex:page standardController="Account">
     <apex:detail />
</apex:page>

 

 

But how can i load the page with the editable input fields. This page appears, if i edit an account. Can i do this with something similiar like  <apex:detail mode="edit"/> or else?

I can´t find this neither in the documentation nor in the cheatsheet.

 

Thanks for any hint!

 

Best

David

bob_buzzardbob_buzzard

You can't do this.

 

More detail here 

sunil316sunil316

No you can not do in tht way.

 

 Sol:

 

 

<apex:pageBlockTable value="{!accs}" var="row">

     <apex:column >

       <apex:outputLink title="" value="/{!row.id}/e?retURL=/apex/{!$CurrentPage.Name}" style="font-                  weight:bold">Edit</apex:outputLink>

     </apex:column>

</apex:pageBlockTable> 

 

 

this is the way it works... try out in your code