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
mukesh guptamukesh gupta 

RelatedList child to parent

Hi Expert,

I need to Create a visual force page having a VF component for which user can quickly type child(contact/opportunity) name. After press submit button attach them with parent record(Account). 

Please suggest, how can i use Vf component for above requirement.

Thanks
Mueksh
Akhil ReddyAkhil Reddy
1. create viualforce component and create id attribute in it and assign it with parent record id in visual force page.
2. create method in component controller which take up the parent and create the child record using this id.
3.  To make it more dynamic component, use getGlobalDescribe() from schema class and use it to create different types of objects