You need to sign in to do that
Don't have an account?
VPrakash
Can we add multiple child records to a parent record using apex and visualforce page?
Hi all,
Here is the scenario, We have a contract object to which contract line items is a child object. We want to add multiple contract line items to the contract object. Contract line items are nothing but the products with some extra fields. Like we add opp line items to the opportunities as in standard functionality. Can we do this for my scenario using apex and visualforce. Is this possible?
Thanks in advance
--VPrakash
don't see why not.. the contractlineitem would need a 'parent' contract ID field
so you would get the id of the contract, then create contractlineitems where the contractid is the one you found before.
Sam
Yes , we can do this by using standard functionallity. just make a relationship between product & Contarct. So that contract will pe parent & product will be chalid. So u can add as many contract line items in a contract...
Hi all,
The thing is we want to add multiple records at a time through the UI as we add multiple products to the opportunity as opp line items and edit the discount, saleprice and date in the next screen. I mean to say I want to clone the whole process of creating opp line items using apex and visualforce. Can we do this? If so can you please provide me with the sample code and resources.
Thanks
--VPrakash
Im looking to do this also.
The closest i can find is this code, but I think there should be something before it in the class? anyone got any ideas to expand on this?