gous99
6th September 2002, 16:59
Hi all,
I am trying to automate the process of creating a production order and then do the print order document and release.
We are on Baan c3 A&D 22b0
Everything goes smooth up until the Print Order Document and Release.
Here is my code for this part,
stpapi.handle.subproc("tisfc0101m000", "tisfc0205s000", "add")
stpapi.handle.subproc("tisfc0205s000", "tisfc0408s000", "add")
stpapi.zoom.option("tisfc0101m000", 1, "tisfc0205s000", gapi.error.code)
I followed the script with afs.log, here it goes, it handle the process for tisfc0205s000 (wich is only a form with no fields, all the code, zooming to tisfc0408s000 and tisfc0204s000 is in the form.1, init.form event).
Then, in the afs.log we see it does the handle sub process to tisfc0408s000, but (I compiled the script tisfc0205s000 in debug) then without any warning it starts the session tisfc0205s000, and when it gets the zoom.to$ tisfc0408s000 it hangs there forever????
Here is the code from tisfc0205s000,
form.1: |EV#12031-1
init.form: |EV#12031-1
import("new.order.no",new.order.no)
export("new.order.no",new.order.no)
zoom.to$("tisfc0408s000",z.session,"","",0) zoom.to$("tisfc0204s000",z.session,"tisfc0205s000","",0)
end()
Any ideas for this problem....
I am trying to automate the process of creating a production order and then do the print order document and release.
We are on Baan c3 A&D 22b0
Everything goes smooth up until the Print Order Document and Release.
Here is my code for this part,
stpapi.handle.subproc("tisfc0101m000", "tisfc0205s000", "add")
stpapi.handle.subproc("tisfc0205s000", "tisfc0408s000", "add")
stpapi.zoom.option("tisfc0101m000", 1, "tisfc0205s000", gapi.error.code)
I followed the script with afs.log, here it goes, it handle the process for tisfc0205s000 (wich is only a form with no fields, all the code, zooming to tisfc0408s000 and tisfc0204s000 is in the form.1, init.form event).
Then, in the afs.log we see it does the handle sub process to tisfc0408s000, but (I compiled the script tisfc0205s000 in debug) then without any warning it starts the session tisfc0205s000, and when it gets the zoom.to$ tisfc0408s000 it hangs there forever????
Here is the code from tisfc0205s000,
form.1: |EV#12031-1
init.form: |EV#12031-1
import("new.order.no",new.order.no)
export("new.order.no",new.order.no)
zoom.to$("tisfc0408s000",z.session,"","",0) zoom.to$("tisfc0204s000",z.session,"tisfc0205s000","",0)
end()
Any ideas for this problem....