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
SS KarthickSS Karthick 

Edit Output Field Values

Hi folks ,
      Can anyone tell me how to edit the output field values without Inline Edit  in viusalforce page?

Below is my viusalforce page
                  <apex:pageBlockSection ">
                  <apex:repeat value="{!productRecords}" var="p"  >
                              <apex:outputField value="{!p.Name}" / ><br/>
                             
                              <apex:outputField value="{!p.Product__c }"/>
                             
                             </apex:repeat>
            </apex:pageBlockSection>
         I wanna edit those two output fields
Thanks in advance
Karthick
Best Answer chosen by SS Karthick
Bhawani SharmaBhawani Sharma
http://www.salesforce.com/us/developer/docs/pages/Content/pages_dynamic_vf_field_sets.htm

All Answers

Bhawani SharmaBhawani Sharma
Why not inline editing  ?
SS KarthickSS Karthick
Hey Bhawani Sharma,
    I have  create a custom button called Edit..
If I click the edit button then those two output field is enable for editting

For that What i ve to do?

Please Help!
Bhawani SharmaBhawani Sharma
You can create one more section on this page and keep it hidden by default with Rendered attribute and add your both fields as inputField in this section.
Once you click on the esdit button, reRender you page, Hide firstSection and dispaly the second  section.

If this is complicated, you can also create a new page but use  the apex:inputField tag there. Use "Edit" button to navigate to that page.
SS KarthickSS Karthick
Hy Bhawani Sharma,
Thanks for your respone..
If more than 20 output fields then what I have to do??

I wanna like If custom edit button is clicked then the inline edit is enabled for all the output field
for that how to do?

Thanks in advance
Karthick

Bhawani SharmaBhawani Sharma
You can use a field set to have your page dynamic.
SS KarthickSS Karthick
Hey Bhawani Sharma..
I dono what is field set and how to use field set..

Can you give me the resource or blog for tht field set

Thanks in advance
Karthick
Bhawani SharmaBhawani Sharma
http://www.salesforce.com/us/developer/docs/pages/Content/pages_dynamic_vf_field_sets.htm
This was selected as the best answer