3 Antworten
@BalirB, You have to follow few steps:
- Create a Wrapper class says "ChildContactWrapper"
- Add fields need to be displayed over the UI.
- Add List<ChildContactWrapper> as {get; set;}
- Method: add a new record,
- To initiate new ChildContactWrapper record every-time "add" button clicks and place in a List of the wrapper.
- The function would add Contact-id of the parent record.
- Method: delete record
- To delete the last record in the ChildContactWrapper list when "remove" button clicks.
- Create Another function for "Save", to create child records based on the entry made.
Gaurav
Skype: gaurav62990