rajbhan
14th April 2008, 12:35
I have written a dll which contains a function to insert record in a temporary table,read the record,return the column value to progarm script and immediately delete the record from the temporary table.I am using no db.retry point at the top of the function and issuing only one commit.transaction after the record is being deleted from temp table.This dll is being called from various sections of program scripts incuding before.write or before.rewrite sections.So I have a parameter being passed to this dll indicating whether I must commit in the dll or not.
Now before saving a record from the main session(single occurance + main,main table tdsls909) this dll gets called from when.field.changes section and then from before.display section of a particular display field.
I have tried all combinations of my commit parameter for the above two calls so that the commit.transaction in the dll does not interfere with the commit.transaction of the std program.But still I get either error message "Transaction is on" in the before.choice sub-section of "choice.update.db" section or Error message "Error 206,Record is not locked on table tdsls909 in db_update" in the before.rewrite sub-section.
Is there any method I can successfully call the dll function from when.field.changes and before .display section and getting the record saved in the database without getting the error messages.Urgent help will be appreciated.Please find enclosed the dll and program script.
Thanks
Rajbhan
Now before saving a record from the main session(single occurance + main,main table tdsls909) this dll gets called from when.field.changes section and then from before.display section of a particular display field.
I have tried all combinations of my commit parameter for the above two calls so that the commit.transaction in the dll does not interfere with the commit.transaction of the std program.But still I get either error message "Transaction is on" in the before.choice sub-section of "choice.update.db" section or Error message "Error 206,Record is not locked on table tdsls909 in db_update" in the before.rewrite sub-section.
Is there any method I can successfully call the dll function from when.field.changes and before .display section and getting the record saved in the database without getting the error messages.Urgent help will be appreciated.Please find enclosed the dll and program script.
Thanks
Rajbhan