+ Start a Discussion
Sophia GSophia G 

Replicate custom object list view of records, and action button on visualforce page

Hi,
How can I create a  visualforce page that replicates the list view of my custom object records, and the functionality of being able to select a record and then use the action button to add a New Competitor to this record and to populate the record that I have selected. Please see below.

User-added image

User-added imageI have create numerous visualforce pages in an attempt to replicate this functionality (where the Division is pulled through to the form) but nothing seems to be working. The Division is the master and the Competitor is the child in the master-detail relationship of the field "Division".

Thanks
Best Answer chosen by Sophia G
GulshanRajGulshanRaj
Hi Sophia G,

You can use standard list controller for this to get the selected records. Once you get the selected records in apex controller then you can iterate on the selected division and create new competitor records
Here is related article on this https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_access_data.htm


Thanks 
Gulshan Raj 
https://www.linkedin.com/in/gulshan-raj