Currently if I copy a master record I believe it only copies the master record and not the related detail records, I think the code should be put in ADD/COPY server events.
- Click Copy Master Record
- Save old_ID to session('old_ID')
- Rename master record to $OriginalName . " Copy 1"
- Click Add
- new_ID = session('new_ID')
- query for FK using session('old_ID') from DETAIL table
- Re-insert old detail records as new detail records with FK using session('new_ID')
- Done
Is there any example code or old post that did the above that I can use as reference?