0

I've written some code in insert method of RBOLoyaltyMSRCardTrans table, it is working fine when I add some row from AX client, but I want this code to run when a transaction is occur in POS and data is written in this table, in this case my code is not running.

Any idea ?

j.a.estevan
  • 3,057
  • 18
  • 32
alphaprolix
  • 601
  • 2
  • 10
  • 25

1 Answers1

3

Insert method of a table will not fire in any of the following cases:

  • Records are inserted with doInsert() method (and not insert())
  • Records are massively inserted with the SQL sentence insert_recordset with skipDataMethod(true) mofifier.
  • Records are inserted from a Form and the insert() method of the Form Datasource is overriden and deleted the super() call.
Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50
j.a.estevan
  • 3,057
  • 18
  • 32
  • Actually `insert_recordset` does call `insert()` if provided, unless you call `skipDataMetod(true)`. – Jan B. Kjeldsen Aug 23 '13 at 19:19
  • That's true. `Insert_recordset` changes the action to record-to-record level when there is an `insert` method on the table. I've updated my answer. – j.a.estevan Aug 23 '13 at 19:49