You need to sign in to do that
Don't have an account?
azar khasim
Trying to create bulk records in Child Object from Parent Object using Visualforce Page !
Hello Developers/Everyone,
Trying to create bulk records in Child Object from Parent Object using Visualforce Page .
Objects Names :
Opportunity (Opportunity)
Product Schedule (Project_Schedule__c)
Schedule (Schedule__c)
Relation Between Them :
Master Detail
Opportunity to Schedule(MasterDetail)
Schedule to Product Schedule(Master Detail)
Actual Action to perform:
On Opportunity Record Page(Detail Page)
Create a custom Button.
Custom Button contain Visualforce Page.
In that Visualforce Page we have fields of Schedule Object which is child of Opportunity.
User update Mandatory fields of Schedule Object, on that Visualforce Page and click on save at that time.
We need to create 10 or 12 or 20 records with the same data in all records.(Number of records will be dynamic)
Now Example :
10 records have to get created on Schedule Object.
then at that time
in Sub child Object(Product Schedule) their also 5 or 7 or 10 Records need to get create dynamically.
Final point is
From Opportunity
we need to create a record in child object as well as in super child(Child Child Object) Object.
These are to be bulk records and are dynamic in insertion.
***Please provide me a solution.
If any doubts please revert back..,
I need this implementation and any suggestion will really helps me a lot.
Thanks and Regards,
Azar Khasim.
Trying to create bulk records in Child Object from Parent Object using Visualforce Page .
Objects Names :
Opportunity (Opportunity)
Product Schedule (Project_Schedule__c)
Schedule (Schedule__c)
Relation Between Them :
Master Detail
Opportunity to Schedule(MasterDetail)
Schedule to Product Schedule(Master Detail)
Actual Action to perform:
On Opportunity Record Page(Detail Page)
Create a custom Button.
Custom Button contain Visualforce Page.
In that Visualforce Page we have fields of Schedule Object which is child of Opportunity.
User update Mandatory fields of Schedule Object, on that Visualforce Page and click on save at that time.
We need to create 10 or 12 or 20 records with the same data in all records.(Number of records will be dynamic)
Now Example :
10 records have to get created on Schedule Object.
then at that time
in Sub child Object(Product Schedule) their also 5 or 7 or 10 Records need to get create dynamically.
Final point is
From Opportunity
we need to create a record in child object as well as in super child(Child Child Object) Object.
These are to be bulk records and are dynamic in insertion.
***Please provide me a solution.
If any doubts please revert back..,
I need this implementation and any suggestion will really helps me a lot.
Thanks and Regards,
Azar Khasim.
I imagine that you could have some rules to create 5, 7 or 20 child records.
Ensure this rules maybe with the help of a custom metadata.
I don't know your business logic, but when you can do anything from standard, the backend is the solution.
Thanks for the point you told.
Actually I have done 60% work.
Object A and Object B has Master Detail Relation.
Object B and Object C has Master Detail Relation
From Opportunity(Object A)
Create Bulk records in object B is done.
while records created on Object B at that time we need to create child records in Object C.
This functionality I have stucked.
Below are my codes.
help me from this point.
VF Page:
Apex Controller:
Thanks and Regards,
Azar Khasim.