You need to sign in to do that
Don't have an account?
Maddy6161
How to insert data into a Related List object with VF page and apex controller
I have to Custom Object: ObjectA__c, and ObjecB__c, ObjectB__c related list of ObjectA__c,
I have data in ObjectA__c now want to add new entery inside the ObjectB__c related list by the use VF page. How can i do that
I have data in ObjectA__c now want to add new entery inside the ObjectB__c related list by the use VF page. How can i do that
Following is the sample code to have a dropdown for selecting ObjectA__c record for lookup field, so that link objectB__c records with any one record of ObjectA__c.
(Change field names as per Api names in you Org, in apex as well as VF)
Apex:
VF:
If this helps you out, please mark it Best Answer.