• balu
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hello,

I am creating a Visualforce page using new version 19.

I have two dependent picklist fields. When the controlling field is an inputfield the dependent picklist is filtered.

If I change the controlling field to an outputfield the dependent picklist shows all the values (it is not filtering).

The value of the controlling field is auto populated.

 

Is there a work around to maintain the dependency by keeping the controlling field as outputfield.

 

Dependency Works:

 

<apex:page standardController="opportunity" tabstyle="Opportunity" >
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection title="Sample" columns="1">
                <apex:inputField value="{!opportunity.Segment__c}"/>
                <apex:inputField value="{!Opportunity.Department__c}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

 

Dependency does,t Work:

 

<apex:page standardController="opportunity" tabstyle="Opportunity" >
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection title="Sample" columns="1">
                <apex:outputfield value="{!opportunity.Segment__c}"/>
                <apex:inputField value="{!Opportunity.Department__c}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

Thanks for you time.

 

  • August 25, 2010
  • Like
  • 0