rahul.kolhe22
17th May 2008, 17:34
Hi all,
I am having a MMT session in which I am adding the record. While saving the record I check the values of the record in DAL2 before.save.object() function. If there is any problem I return DALHOOKERROR. Now my problem is if I am returning DALHOOKERROR then I have to initiliaze that variable to blank value in UI.
But I am unable to catch that event in which before.save.object is returning DALHOOKERROR. In UI I have tried on.error section but the control does not go there.

Sometimes it gives me some tools error. But I am totally unable to understand why is it comming. PLEASE somebody tell me what is going wrong.

The tools error snapshot is been attached to this message.

Thanks in advance

NvpBaaN
26th December 2008, 21:57
did you get the solution for this?

If not, can you give more details like whether you were trying to add record to the MMT controller session or to one of the satellites?

Also check if you can trap the returned DALHOOKERROR in before.display.object.

The other tools error is probably due to older porting set. That shouldn't matter -- you can continue by choosing to ignore that error.

vahdani
29th December 2008, 10:12
Hallo,

the correct way to check the record is to do this for each field in a "field.is.valid" section in the DAL2 instead of "before.save.object" section as in your case. In this way the field values can also be reset,..