baldie
11th April 2007, 12:26
Hi,
I try to store a table-field which is changed in the programscript. I try to do as follows:

if restore.old.tdsls002.prdt=tcyesno.yes then
tdsls002.prdt=old.tdsls002.prdt
update.occ()
execute(update.db)
display("tdsls002.prdt")
endif


But this is not working. Somebody any idea what I am doing wrong?
Thanx in advance.

JaapJD
16th April 2007, 09:24
What is the type of the script (with or without main table, see ttadv2130m000) and in which section did you try to update the field?

mr_suleyman
17th April 2007, 09:48
I think that your logic is correct but may be it is about your "if" statement. In which part of your code do you use if statement?


G.Luck !

Hitesh Shah
17th April 2007, 17:57
I guess it maintain session and u are trying to update the main table field from a user choice.

U can try to use do.all.occ / do.oc function and use update.occ in the function . It should update ur maintable field .