You need to sign in to do that
Don't have an account?
Ganesh Hembram
Creating new record from related List using apex code
Hello developers,
how to create or add new record from related list using apex code. If possible then give some sample code.
Thanks
how to create or add new record from related list using apex code. If possible then give some sample code.
Thanks
Can you elaborate little more what exactly you want .
Yes , you can have a button on related list and there you can create as amny child records you want from apex...
Thanks
sandeep
check the image above, suppose i'm creating "New Job Application" from Candidate related List and the record will save in the "Job Application" Object. or the record is inserted in the "Job Application" Object.
but i want the same process using apex code which will create "New Job Application" from Candidate related list and it will insert or save the record in the "Job Application" Object.
If it is already there , then you want same thing from apex..is it that you want to do some additional things in apex before inserting the job application ??
Thanks
So you want to use your custom VF page on clcik on that button correct? if this is the case then simply you can create a list button in your objct and there you can select VF page so whenever you click on that button you rvf page which launch , from there you can give the layout which you need and based on that user can enter the records...
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
Thanks,
Sandeep
Salesforce Certified Developer