You need to sign in to do that
Don't have an account?
sankum
facing problem withh fieldset
hi,
iam new to use field set in visualforce page
i created a one field set to retrive to vf page iam getting the error!
<apex:page controller="fieldset1">
<apex:form >
<apex:pageBlock title="Field Set List">
<apex:pageBlockSection >
<apex:repeat value="{!$ObjectType.cr__c.Fieldsets.Myfieldset}"/>
<apex:inputField value="{!cr__c[f]}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
iam did not get the field in vf page
ERROR::Invalid identifier: cr__c
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_repeat.htm
It should look something like this:
So if cr__c is your object and MyFieldset is the name of the field set you created in cr__c:
<apex:pageBlockSection> <apex:repeat value="{!$ObjectType.cr__c.FieldSets.Myfieldset}" var="f"> <apex:inputField value="{!showFieldSet[f]}"/> </apex:repeat> </apex:pageBlockSection>