arunprasath
2nd December 2002, 17:12
Hi,
When I put values in the session tfacr1110s000 and then say stpapi.insert(), it starts two subsessions one by one.
The First subsession is tfacr1102s000(Maintain One time customer) and after we enter values into this session and when we close this session, the next subsession pops up. This subsession is tfacr1111s000. so I need to enter values into this subsession and then close this session.
I have created two handles for these two session in the main session.
As soon as I say insert in the parent session tfacr1110s000, the first subsession pops up and as I close this session after insertion, I am able to see the next subsession that has been started in the background .(using ps).
now when I use the line stpapi.put.field("") into this second session, I am getting a fatal error.
index 0 out of dims[1] 3
Cannot continue
I hope AFS can take care of two subsessions that will be popped up after a single insert.
Here is my code
After putting values in the session tfacr1110s000,
stpapi.handle.subproc("tfacr1110s000","tfacr1102s000","add")
stpapi.handle.subproc("tfacr1110s000","tfacr1111s000","add")
ret=stpapi.insert("tfacr1110s000",true,error.code)
Now first subsession starts up.
stpapi.put.field("tfacr1102s000","tfacr202.ccty",str$(" "))
stpapi.insert("tfacr1102s000",true,neglect)
stpapi.end.session("tfacr1102s000")
Now in the background I am able to see the next subsession started.
here in this line below,when I try to put values, I am getting this fatal error.
stpapi.put.field("tfacr1111s000","tfgld102.leac",str$(ledgeraccount))
Where did I went wrong?
or is this again a bug with Baan?
thanks for your suggestions
regards,
s.arun prasath
When I put values in the session tfacr1110s000 and then say stpapi.insert(), it starts two subsessions one by one.
The First subsession is tfacr1102s000(Maintain One time customer) and after we enter values into this session and when we close this session, the next subsession pops up. This subsession is tfacr1111s000. so I need to enter values into this subsession and then close this session.
I have created two handles for these two session in the main session.
As soon as I say insert in the parent session tfacr1110s000, the first subsession pops up and as I close this session after insertion, I am able to see the next subsession that has been started in the background .(using ps).
now when I use the line stpapi.put.field("") into this second session, I am getting a fatal error.
index 0 out of dims[1] 3
Cannot continue
I hope AFS can take care of two subsessions that will be popped up after a single insert.
Here is my code
After putting values in the session tfacr1110s000,
stpapi.handle.subproc("tfacr1110s000","tfacr1102s000","add")
stpapi.handle.subproc("tfacr1110s000","tfacr1111s000","add")
ret=stpapi.insert("tfacr1110s000",true,error.code)
Now first subsession starts up.
stpapi.put.field("tfacr1102s000","tfacr202.ccty",str$(" "))
stpapi.insert("tfacr1102s000",true,neglect)
stpapi.end.session("tfacr1102s000")
Now in the background I am able to see the next subsession started.
here in this line below,when I try to put values, I am getting this fatal error.
stpapi.put.field("tfacr1111s000","tfgld102.leac",str$(ledgeraccount))
Where did I went wrong?
or is this again a bug with Baan?
thanks for your suggestions
regards,
s.arun prasath