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
Jim BoudreauxJim Boudreaux 

Inlineeditsupport and Fieldsets

Am I doing something wrong or does the InLineEditSupport Tag not work with Field Sets?

Best Answer chosen by Admin (Salesforce Developers) 
Jim BoudreauxJim Boudreaux

cb should be eb, the edit button id. 

Besides, turned out there was a bug. This is no longer an issue.

All Answers

Jim BoudreauxJim Boudreaux

 

This does not work.

 

 

<apex:pageblock >
   <apex:pageBlockButtons >
      <apex:commandButton action="{!edit}" id="eb" value="Edit"/>
      <apex:commandButton action="{!save}" id="sb" value="Save"/>
      <apex:commandButton onclick="resetInlineEdit()" id="cab" value="Cancel"/>
   </apex:pageBlockButtons>
   <apex:pageblockSection >
      <apex:repeat value="{!$ObjectType.Contact.fieldsets.General_Info}" var="f">
         <apex:outputField value="{!Contact[f]}">
            <apex:inlineEditSupport showOnEdit="sb,cb" hideOnEdit="eb" event="ondblclick"/>
         </apex:outputfield>
      </apex:repeat>
   </apex:pageblockSection>
</apex:pageblock>

 

 

AnTraXAnTraX

Hey,

 

What is cb? I think you could try type cab instead.

Jim BoudreauxJim Boudreaux

cb should be eb, the edit button id. 

Besides, turned out there was a bug. This is no longer an issue.

This was selected as the best answer
AnTraXAnTraX

Ok great! But it should be sb,cab when you are editing.

Jim BoudreauxJim Boudreaux

D'oh! You're right. cab, the cancel button.

Btw, anyone else think it odd that you can show buttons when inline editing, but there is no provision for hiding buttons otherwise. Like the Save button for instance. It shouldn't be there until you are inline editing, but there is no way to hide it. Well, no way that is overridden by the Show attribute of the inlineedit component.