You need to sign in to do that
Don't have an account?
Pramodh Kumar
edit parent and child in same vf page
I have requirement to edit parent and child on same page, I have four level deep on one page, like grand parent, parent, child and grand child.
Please help with any suggestions
Please help with any suggestions
To write a test class for a wrapper you need to create the object data.
In your case create parent records and creste child records and associate child to the parents.
Then call the wrapper.
Let me know if you have any question.
Please mark this as solution if this solves your problem, So that if anyone has this issue this can help.
All Answers
You can use wrapper class to achieve this.
Fetch all the objects and create a wrapper of those.
See the below example where they have a boolean added. But you can add different objects
https://developer.salesforce.com/page/Wrapper_Class
Let me know if you have any question.
Say you have following records
Parent__c
Child__c
Please mark this as solution if this solves your problem, So that if anyone has this issue this can help.
here is the snapshot of my page
To write a test class for a wrapper you need to create the object data.
In your case create parent records and creste child records and associate child to the parents.
Then call the wrapper.
Let me know if you have any question.
Please mark this as solution if this solves your problem, So that if anyone has this issue this can help.