gget79
17th July 2009, 16:57
Hi BaanFriend's:

I am working with Infor LN 6.1, before I have worked with the old versions.

I have a question for you...

As far as where I know the DAL is a software component that it assures us to centralize the code and that always the table was updated the DAL validation's was triggered, but now I know that it only happen when I work with dal.update(); that is, if I work with db.update() the DAL validation's won't be executed.

Why does The LN permits this?

Thank you....

MilindV
20th July 2009, 07:04
Hi gget79

I don't know the exact reason, but scenario which I came across is,
I wanted to update the record of the same table before saving the record.

So in this case update logic of record of the same table I wrote in DAL hook before.save.object(). But now if I use dal.update() then for that other record again before.save.object() will get invoked, and this gives rise to recursion. So while updating other record of same table in before.save.object I used db.insert().

This may be the case, why db.insert is still allowed.

Thanks & Regards
Milind V