balabharathi
19th November 2010, 06:02
Hi ,
We have used DAL event
function extern long whtus015.trip.check(long has_changed)
{
if not isspace(whtus015.trip) and has_changed then
select whtus400.trip
from whtus400
where whtus400._index1 = {:whtus015.trip}
selectdo
selectempty
dal.set.error.message("whtus4100m.01")
|Trip Id not found
return(DALHOOKERROR)
endselect
endif
return(0)
}

But this code is not working since we are modifying the particular field by clicking on the "New Group" button. But if we remove if has_changed condition it is working, but when we run other session using the Same DAL it is firing this DAL Error. Please resolve this.

Regards,
BB

bdittmar
19th November 2010, 09:58
Hi ,
We have used DAL event
function extern long whtus015.trip.check(long has_changed)
{
if not isspace(whtus015.trip) and has_changed then
select whtus400.trip
from whtus400
where whtus400._index1 = {:whtus015.trip}
selectdo
selectempty
dal.set.error.message("whtus4100m.01")
|Trip Id not found
return(DALHOOKERROR)
endselect
endif
return(0)
}

But this code is not working since we are modifying the particular field by clicking on the "New Group" button. But if we remove if has_changed condition it is working, but when we run other session using the Same DAL it is firing this DAL Error. Please resolve this.

Regards,
BB

Hello,
do not doublepost, please.
See: http://www.baanboard.com/baanboard/showthread.php?t=59530
Regards

balabharathi
22nd November 2010, 07:57
Ok Thanks.

mark_h
22nd November 2010, 18:28
Re-opened since some on responded - I will lock it so nobody else uses this thread, but the other thread.

Thanks