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
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