lijie0407
18th March 2010, 05:51
Dear All,
I want to save the Baan ID into the maintable when some fields were modify at LN 6.1.I edited code can get Baan ID but not save the value into table .Please refer to the following code:

choice.update.db:
after.choice:
if update.status = modify.set then
tdpur999.emno = logname$
message("OK!!!")
endif

Please tell me how to process it.
Thanks!

Eric

wiggum
18th March 2010, 12:51
Do you want to update the value into the table? Then the easiest way is to put this into the DAL of the table:

function extern before.save.object(long i.mode)
{
if i.mode = DAL_UPDATE
then
tdpur999.emno = logname$
endif
}