rosanal
2nd September 2008, 19:31
Hi,
I have problems in use of afs on Baan IV. When I set a field in a SubSession using stpapi.put.field and after stpapi.continue.process to call other
subsession, I have return to field.session of this field to check it, but because I'm using stpapi.continue.process, goes directly to cont.proccess
of this subsession and the field it's not checked so the cont.proccess it's executed with wrong values.
In other example, I used two stpapi.update and was right, but not in this.
Do Anyone knows how (what comand) return to check.input or before.input of field when the stpapi.continue.process is calling?
Thanks!
My code:
stpapi.put.field(sessao.o, "main.ttyp", tfcmg994.tlin.o)
stpapi.put.field(sessao.o, "tfacr200.cuno", str$(tfcmg994.cuno.o))
stpapi.put.field(sessao.o, "tfacr200.ttyp", str$(tfcmg994.typl.o))
stpapi.put.field(sessao.o, "tfacr200.ninv", str$(tfcmg994.docl.o))
|*stpapi.update(sessao.o, false, erro)
|*stpapi.update(sessao.o, false, erro)
if isspace(erro) then
stpapi.continue.process(sessao.o, erro)
|* when the continue.process is executed, I need go to the before.input of "main.ttyp", but goes directly to sessao2.o (line of
|*zoom.to present in cont.process of sessao.o)
stpapi.handle.subproc(sessao.o, sessao2.o, "send")
if isspace(erro) then
executa.afs.ssessao2()
endif
endif
I have problems in use of afs on Baan IV. When I set a field in a SubSession using stpapi.put.field and after stpapi.continue.process to call other
subsession, I have return to field.session of this field to check it, but because I'm using stpapi.continue.process, goes directly to cont.proccess
of this subsession and the field it's not checked so the cont.proccess it's executed with wrong values.
In other example, I used two stpapi.update and was right, but not in this.
Do Anyone knows how (what comand) return to check.input or before.input of field when the stpapi.continue.process is calling?
Thanks!
My code:
stpapi.put.field(sessao.o, "main.ttyp", tfcmg994.tlin.o)
stpapi.put.field(sessao.o, "tfacr200.cuno", str$(tfcmg994.cuno.o))
stpapi.put.field(sessao.o, "tfacr200.ttyp", str$(tfcmg994.typl.o))
stpapi.put.field(sessao.o, "tfacr200.ninv", str$(tfcmg994.docl.o))
|*stpapi.update(sessao.o, false, erro)
|*stpapi.update(sessao.o, false, erro)
if isspace(erro) then
stpapi.continue.process(sessao.o, erro)
|* when the continue.process is executed, I need go to the before.input of "main.ttyp", but goes directly to sessao2.o (line of
|*zoom.to present in cont.process of sessao.o)
stpapi.handle.subproc(sessao.o, sessao2.o, "send")
if isspace(erro) then
executa.afs.ssessao2()
endif
endif