+ Start a Discussion
rupesh ranjanrupesh ranjan 

dependent pick list


By selecting the value of picklist it should display different value in pageblock table
nagachandra knnagachandra kn
The question is not clear. can you please explain the issue clearly.
rupesh ranjanrupesh ranjan
give me the mail id i will explain you.
rupesh ranjanrupesh ranjan
i mean to say by selecting picklist value data will display in visualforce table
rupesh ranjanrupesh ranjan
Based on picklist selection, how to display corresponding data in page block table of VF page

some sample code please
Arun KumarArun Kumar

Hi Rupesh,

Standard approach: 
it is possible without code also. 
configure one depndent picklist in your object. and use the parent object as <inputfield> , all dependet will appear automatically, 
To create dependent picklist in standard way follow this link ;
 https://help.salesforce.com/HTViewHelpDoc?id=fields_defining_field_dependencies.htm
http://www.crmsalesforcetraining.com/picklist-controlling-picklist-dependent-picklist-salesforce/

OR if you want to create dependent picklist in dynamic way in apex then please follow this link 
http://blog.deadlypenguin.com/blog/2012/07/09/dynamic-dependent-picklists-in-salesforce/
https://www.minddigital.com/how-to-create-dynamic-dependent-picklist-of-objects-within-salesforce/

Please let me know if the helps.

As a common practice, if your question is answered, please choose 1 best answer.
Additionaly you can give every answer a thumb up if that answer is helpful to you.

Thanks,
Arun