I have the following inline visualforce page which gives me an internal server error.
<apex:page standardcontroller="Agreement__c">
<apex:repeat value="{!$ObjectType.Agreement__c.FieldSets.MyFieldset}” var="f">
<apex:outputText value="{!Agreement__c[f.fieldPath]}" />
</apex:repeat>
</apex:page>
This fieldset is pulling fields from related objects and if I switch to one that is only pulling fields from the object itself it works correctly.
Is this a known limitation around fieldsets and dynamic binding?
NEW: After some additional testing this appears to only occur when I pull in related fields from the agreement object itself. e.g. I have a lookup to agreement__c on agreement__c and the page only throws internal server error when using that lookup but pulling in from other related objects works fine.
Error ID: 1936706758-1056 (1347345803)
var="f"
in line 2 and[f.fieldPath]
on line 3 have the same value, which is the API name for the field on this object. It sounds like your request is specifically about rendering fields defined in the fieldset that are acquired from related records. Correct? (f
is aSchema.FieldSetMember
and in this case it's .toString() method returns the field name)