e13639
5th August 2002, 17:03
I am trying to copy a record executing "dupl.occur" via script.
When user changes the status of one specific field the logic should copy the actual record to a new one. I am always getting the following error:
Function '': Recursion not possible refcount = 2
Can not continue...
Recursion not yet implemented.

Any idea ?
My name is Victor.
Bye

lbencic
5th August 2002, 17:16
Hi Victor -

What section are you calling the execute from? You may find problems running some execute calls from an after field section. That's because the status of the record is already in 'update', the record locked. Try moving the call around. The after.update.db.commit section is very good for issuing those commands, because nothing is locked in the standard program. If you don't want to wait until the user chooses the save - you can execute the save from somewhere in the after field sections, and execute the copy from the after.update.db.commit.

e13639
5th August 2002, 17:32
Thanks. It works !!!!