Joy Conner
15th March 2007, 16:57
I am having an intermitant problem and would appreciate some advise.
I am running QKEY, BaaN IVc4 using Informix level 2 drivers on a unix system. We have significant customizations to the order entry program and this is where I am encountering a problem.
During the OE program, in
main.table.io:
before write:
tdsls041.myfield = myvariable
before rewrite:
tdsls041.myfield = myvariable
after.update.db.commit:
In this section a call is made to a library which puts data into one of our custom tables. Two input parameters are tdsls041.orno, tdsls041.pono.
If not myvariable then
send message to user about this problem
else
dll.call(input.orno, input.pono)
endif
function.dll.call()
select tdsls041.*
from tdsls041
where tdsls041._index1 = {:input.orno, :input.pono}
selectdo
endselect
mytable.myfield = tdsls041.myfield <<<<< This is a mandatory field reference.
db.insert(mytable)
commit.transaction()
This is a simplification of the process but should serve to illustrate the problem. Sometimes, an error is reported in log.informix. The error states that the reference does not exist, so the new record is not inserted.:confused:
In the library, I'm expecting to be able to read the sales order line record and retrieve the content of some fields. What am I doing wrong?:confused:
I am running QKEY, BaaN IVc4 using Informix level 2 drivers on a unix system. We have significant customizations to the order entry program and this is where I am encountering a problem.
During the OE program, in
main.table.io:
before write:
tdsls041.myfield = myvariable
before rewrite:
tdsls041.myfield = myvariable
after.update.db.commit:
In this section a call is made to a library which puts data into one of our custom tables. Two input parameters are tdsls041.orno, tdsls041.pono.
If not myvariable then
send message to user about this problem
else
dll.call(input.orno, input.pono)
endif
function.dll.call()
select tdsls041.*
from tdsls041
where tdsls041._index1 = {:input.orno, :input.pono}
selectdo
endselect
mytable.myfield = tdsls041.myfield <<<<< This is a mandatory field reference.
db.insert(mytable)
commit.transaction()
This is a simplification of the process but should serve to illustrate the problem. Sometimes, an error is reported in log.informix. The error states that the reference does not exist, so the new record is not inserted.:confused:
In the library, I'm expecting to be able to read the sales order line record and retrieve the content of some fields. What am I doing wrong?:confused: