lijie0407
18th March 2010, 05:40
A new blog entry has been added:

How to update the main table at session

Dear All,
I want to write the Baan ID into  the main table when I modify the some fields.
Please refer to the following code:
choice.update.db:
after.choice:
       if update.status = modify.set then
       tdpur999.emno = logname$
       message("OK!!!")
    endif
I can get the Baan ID value,but can't save the value to the table.
please help me.
Thank!
Eric

manish_patel
18th March 2010, 10:21
Write your code in below section:

main.table.io:
before.rewrite:
tdpur999.emno = logname$


or


choice.update.db:
before.choice:
if update.status = modify.set then
tdpur999.emno = logname$
endif

lijie0407
18th March 2010, 15:50
Dear Manish,

Thank you very much!

Best Regards,
Eric Li