You need to sign in to do that
Don't have an account?
BritishBoyinDC
Field Sets and Inline Editing
Just trying out the new Spring 11 functionality, and had a question I am hoping someone might know..
I can get field sets to work as input or output fields.
I can get Inline editing to work as advertised.
But is it possible to output a set of fields from a field set and have those fields enabled to use inline editing? I have tried to combine the various examples but with no success - is it possible and if so, can someone give me an example?
For instance, it looks from the Spring Webinar that this should work if I pass in a Contact Id into the page...
<apex:page standardController="Contact" > <apex:sectionHeader title="Inline for {!contact.Name}"/> <apex:form> <apex:pageMessages/> <apex:pageBlock> <apex:pageBlockButtons> <apex:commandButton action="{!save}" value="Save"/> </apex:pageBlockButtons> <apex:pageBlockSection columns="2"> <apex:repeat value="{!$ObjectType.Contact.FieldSets.TestFS1}" var="f"> <apex:outputField value="{!Contact[f]}"> <apex:inlineEditSupport event="ondblclick"/> </apex:outputField> </apex:repeat> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
Many thanks
Thanks for bringing this up guys. Turns out this is a bug. We should have it fixed in next week's patch.
...stephan
All Answers
I am having the same experience. It is even more baffling when you consider that <apex:repeat> is listed as a supporting tag in the inlineEditSupport tag documentation. Why else would we ever use the inlineeditsupport tag in a repeat tag except for field sets?
BTW BritishBoyinDC, if we don't get an answer here in the forums by Thursday, fear not. I am attending the Atlanta Dev Meet Up in Atlanta Thursday evening and I swear to you I will get an answer one way or another!!
Thanks Jim.
I created a custom controller that brought back a list of Contacts, and was able to get a PageBlockTable to work as advertised, which seems more complex than my example, so assuming I am just missing something...
Thanks for bringing this up guys. Turns out this is a bug. We should have it fixed in next week's patch.
...stephan
Thanks - glad to know I wasn't losing it!
Good to hear. I was not looking forward to threatening Quinton Thursday. :)
BritishBoyinDC,
Where did you find documentation on using PageBlockTable with Field Sets?
sfdc guy
Take a look in the version 21 of the VF docs, and search for inline
http://www.salesforce.com/us/developer/docs/pagespre/index.htm
Glad you didn't ask! I was building some examples today and tried the same thing. Great pick up. Thanks!
Hi Stephane,
Thanks for the info.
I am using inlineeditsupport in a pageBlockTable in a page driven by a standard controller extension, and have the same problem : will that be fixed also ?
Rup
Is this supposed to be fixed now? I still can't make my page inline editable. I've also tried the examples on the online documentation but nothing. Basically I have a pageBlockTable in which I have a <repeat> tag for the Field Set and inside of it I construct colums. Nothing crazy.
Thanks.
This works for me:
Controller: (Expects to receive an Account Id named aid e.g.
https://c.na7.visual.force.com/apex/ConUpdate?aid=001A0000009aOc7
Page:
Yes, if I'm not using FieldSets that works. The issue is with the combo of FieldSets + inline editing.