ravi_mehta
2nd November 2009, 06:20
Hi All,

In my MMT Session when i am deleting a specific record of satellite session,
Then in {choice.update.db: before.choice:} Section The DAL is getting called.

In DAL in Before.destroy.object() hook i am setting the DAL message
dal.set.error.message("mess code")
return(DALHOOKERROR)

When in after.update.db.commit: section i am trying to retrieve the error message by dal.get.error.message(msg), i am getting blank.

I tried to check tmp.counted.errors = dal.count.error.messages() just before returning the DALHOOKERROR, but i am getting tmp.counted.errors = 0.

I am not able to find the reason behind this.....

baan_fun
18th October 2010, 21:23
Hello,

I think that in after.update.db.commit you are too late. Here you are after all changes were commited. I think you should retrieve the mesage on the choice.update.db or when deleting