NetTalk Central

Author Topic: Priming and Multiple inserts  (Read 7406 times)

hilton

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Priming and Multiple inserts
« 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11197
    • View Profile
Re: Priming and Multiple inserts
« Reply #1 on: August 12, 2011, 01:42:17 AM »
thanks - I've added the call to PreInsert there (for 5.31).

cheers
Bruce