NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: hilton on August 11, 2011, 11:44:44 PM

Title: Priming and Multiple inserts
Post by: hilton on August 11, 2011, 11:44:44 PM
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.
Title: Re: Priming and Multiple inserts
Post by: Bruce on August 12, 2011, 01:42:17 AM
thanks - I've added the call to PreInsert there (for 5.31).

cheers
Bruce