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
onetwokathreeonetwokathree 

Problem with dependent picklist in Apex programmming

This is basic functionality in other programming language, we are facing problem in force.com platform.

We are developing a web application in which we have two objects "Courses" and "Subjects".

 

We have created the master-detail relationship in which, Object "Course" is the master and object "Subject" is the child relationship.

 

 From subject tab we adding subjects under the Course Object.

 

We have createed a visualforce page and using apex programming on which we need to show only those subjects in picklist, which are added under Course Object from Subject Tab.

 

How we can bind Subject picklist dependent on Course Picklist ?

 

 

 

Cool_DevloperCool_Devloper

You have to set the property for the picklist in the controller to fetch the related values from the related object!

Cool_D