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
Divya AnbazhaganDivya 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>


 
Sunil Joshi 3Sunil Joshi 3
<apex:page standardController="contact" recordSetVar="contacts" >
    <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>
Divya AnbazhaganDivya Anbazhagan
Thank you sunil Joshi