Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Error recursion not possible

$
0
0
Hello,
I write an extension for table tsmsc110

In the before.save hook I have this simple code:

Code:

                final.reporting.amount = tsmsc110.cdf_imat
                select tsmsc110.*
                from  tsmsc110 for update
                where  tsmsc110.cmso = :tsmsc110.cmso and tsmsc110.lino = :tsmsc110.lino
                selectdo
                    ret = dal.change.object("tsmsc110")
                    dal.set.field("tsmsc110.cdf_ramt", final.reporting.amount)
                    dal.set.field("tsmsc110.cdf_dfin", utc.num())
                    ret = dal.save.object("tsmsc110", db.retry)
                endselect

Another table extension tswcs410 writes tsmsc110.cdf_imat.
This should trigger tsmsc110 and do there the update above.
However I get an error
Process 45 - Fatal Error : Function 'before.save.object': recursion not possible; refcount=2.
Process 45 - Fatal Error : Can not continue in tswcs2110m000 in DLL: otxesttsmsc110.dbg (before.save.object)[last function:exec_function]

Have you any idea what is wrong?
I've also tried this in the after.save.hook

Viewing all articles
Browse latest Browse all 4216

Trending Articles