Hi Bruce,
In a couple of my programs, I allow multiple inserts in the update that hangs off a browse. I noticed that when the second transaction was entered, the priming was not done again. I embedded code as follows in the PostInsert embed:
p_web.InsertAgain('CustRecUpd')
Clear(cTran:Record)
do PreInsert
exit
! End of "On Insert : Form ends : following disk write"
p_web.InsertAgain('CustRecUpd')
Clear(cTran:Record)
Obviously, I simply copied the generated code below mine, added a Preinsert and exited to avoid the generated code. I thought you may want to contemplate allowing an embed point after the last generated line of code or adding the PreInsert.
Bye,
Hilton.