This content has been marked as final. Show 3 replies
Brilliant, that worked a treat thanks :)
One more question on topic, what is the best way to approach this to be able to create new detail records for an existing parent ? So for new parent/new child I created my child rows in the parent EO create method.
I am also using the wizard layout to edit existing parent records. On one of the train stops, I need new child records created and attached to the existing parent record. The user needs to update the details records during the transaction so I can't simply create the child records in the parent doDML method after the user has saved the transaction.
If they always update some fixed attribute in the existing parent row, you could implement it in this setAttribute method.
If not, you need to create an AM method that creates the child rows, and then either call this method using a method activity in the taskflow, or using the invokeAction executable in the page def.