• mmrrr
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hi All,

 

Is there anybody know how to set the mandatory of the fields in the field sets.  After Summer 11', salesforce has added more properties for field sets, like DBRequired, Required. Origianlly, we had the problem to set some of the fields required in the field sets, after the delivery of Summer 11',  i thought this problem could be resolved by the new property. Below is one of my codes:

 

 

<apex:page standardController="Account">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection >
                <apex:repeat value="{!$ObjectType.Account.FieldSets.Billing_Address}" var="i">                   
                    <apex:inputField value="{!Account[i]}" required="{!$ObjectType.Account.Fields[i].Required}" />
                </apex:repeat>
            </apex:pageBlockSection>
        </apex:pageBlock>        
    </apex:form>
</apex:page>

But after doing this, i always got the error message: Unknown property 'Field.Required'

Error is in expression '{!$ObjectType.Account.Fields[i].Required}' in component <apex:inputField> in page accountbillingaddress
Is there anybody can help me with this problem? Thanks in advance!

 

 

 

Hi.

 

After development in sandbox tried to deploy in the production and

got some rare Error like this

 

Failure Message: "common.page.InvalidParameterValueException: Invalid variant 'parent': value 'InboundChangeSet'", Failure Stack Trace: ""

 

Any Help is greatly appreciated