You need to sign in to do that
Don't have an account?
Divya Anbazhagan
I tried this basic fieldset ideas I am getting this error.Can anyone sort out this Error "Error: Expression of type Text cannot be subscripted"
visualforce page:
<apex:pageBlock >
<apex:pageBlockSection title="Contact list" collapsible="false">
<apex:pageBlockTable value="{!contactlist}" var="contact">
<apex:repeat value="{!$ObjectType.Contact.FieldSets.Contactfieldset}" var="fieldValue">
<apex:column value="{!contact[fieldValue]}"/>
</apex:repeat>
</apex:pageBlockTable>
</apex:pageBlockSection>
<apex:pageBlock >
<apex:pageBlockSection title="Contact list" collapsible="false">
<apex:pageBlockTable value="{!contactlist}" var="contact">
<apex:repeat value="{!$ObjectType.Contact.FieldSets.Contactfieldset}" var="fieldValue">
<apex:column value="{!contact[fieldValue]}"/>
</apex:repeat>
</apex:pageBlockTable>
</apex:pageBlockSection>
<apex:form>
<apex:pageBlock >
<apex:pageBlockSection title="Contact list" collapsible="false">
<apex:pageBlockTable value="{!contacts}" var="contact">
<apex:repeat value="{!$ObjectType.Contact.FieldSets.Contactfieldset}" var="fieldValue">
<apex:column value="{!contact[fieldValue]}"/>
</apex:repeat>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>