ipineda
11th March 2011, 00:07
Hi my friends,
I'm working with AFS to the session tisfc0205m000 and this is what i have get.
stpapi.put.field("tisfc0205m000", "tisfc001.grid", current.grid)
g.ret = stpapi.find("tisfc0205m000", g.error)
if g.ret = 2 then
stpapi.put.field("tisfc0205m000", "tisfc001.grid", current.grid)
g.ret = stpapi.find("tisfc0205m000", g.error)
endif
In the first call of stpapi.find() the return value is 2, even when i know the register exits, and if i call the function again the problem is solved and 1 is returned.
I used the api.log file to see what is going on and i found this:
26dll->serv (start tisfc0205m000 1 0 0)
55serv<-4gl (api.child.startedtisfc0205m00026)
55serv<-4gl (init.ready)
tisfc0205m000(55)-RUNNING:
>tisfc0205m000(55) put.field:tisfc001.grid G90000023
>tisfc0205m000 Find
26dll->serv (def.find 55)
tisfc0205m000(55)-RUNNING:def.find
55serv<-4gl (def.find 0 0)
tisfc0205m000(55)-RUNNING:
<tisfc0205m000 an other record found (2)
>tisfc0205m000(55) put.field:tisfc001.grid G90000023
>tisfc0205m000 Find
26dll->serv (def.find 55)
tisfc0205m000(55)-RUNNING:def.find
55serv<-4gl (def.find 0 1)
tisfc0205m000(55)-RUNNING:
<tisfc0205m000 record found (1)
I see that a value differes in the following lines
55serv<-4gl (def.find 0 0) |* AFS returns 2, does not find the record
55serv<-4gl (def.find 0 1) |* AFS returns 1, find the record
But i don't kwon what the values in the log file means, maybe someone knows what this means or what this problem is about.
It is not the first time this problem occurs and i would really like to know the reason for it.
Thanks for any help you could give me.
I'm working with AFS to the session tisfc0205m000 and this is what i have get.
stpapi.put.field("tisfc0205m000", "tisfc001.grid", current.grid)
g.ret = stpapi.find("tisfc0205m000", g.error)
if g.ret = 2 then
stpapi.put.field("tisfc0205m000", "tisfc001.grid", current.grid)
g.ret = stpapi.find("tisfc0205m000", g.error)
endif
In the first call of stpapi.find() the return value is 2, even when i know the register exits, and if i call the function again the problem is solved and 1 is returned.
I used the api.log file to see what is going on and i found this:
26dll->serv (start tisfc0205m000 1 0 0)
55serv<-4gl (api.child.startedtisfc0205m00026)
55serv<-4gl (init.ready)
tisfc0205m000(55)-RUNNING:
>tisfc0205m000(55) put.field:tisfc001.grid G90000023
>tisfc0205m000 Find
26dll->serv (def.find 55)
tisfc0205m000(55)-RUNNING:def.find
55serv<-4gl (def.find 0 0)
tisfc0205m000(55)-RUNNING:
<tisfc0205m000 an other record found (2)
>tisfc0205m000(55) put.field:tisfc001.grid G90000023
>tisfc0205m000 Find
26dll->serv (def.find 55)
tisfc0205m000(55)-RUNNING:def.find
55serv<-4gl (def.find 0 1)
tisfc0205m000(55)-RUNNING:
<tisfc0205m000 record found (1)
I see that a value differes in the following lines
55serv<-4gl (def.find 0 0) |* AFS returns 2, does not find the record
55serv<-4gl (def.find 0 1) |* AFS returns 1, find the record
But i don't kwon what the values in the log file means, maybe someone knows what this means or what this problem is about.
It is not the first time this problem occurs and i would really like to know the reason for it.
Thanks for any help you could give me.