Ilansu
1st August 2002, 11:52
Hallo all .
We are developing a session that require a timer update.
One way is to use the set.timer() function.
The other way is to use a job.
The request is to do it all from the same session.
Can we do that?
Can we control a job action from a customized session?
We need be able to the following things :
Insert job.
Attach a session to that job.
Activate the job.
Cancel the job.
Re-activate the job. Etc'
Thanks
Ilan S
lbencic
3rd August 2002, 00:43
I am not real familiar with the job setup, but no one has answered for a job specific solution.
As a generic session solution, try using AFS Coding (search for stpapi on this forum for a great manual link). That technique allows you to mimic session actions inside of your custom script.
You should be able to do all the things mentioned by using stpapi commands against the job session. There are occasional compatiblity issues if the session you are trying to call does something weird related to GUI or session killing, but most the times it works without a hitch.
Requires fairly current Porting Set / Standard Program patches (specifically, ttstpapihand library should be current).
Ilansu
4th August 2002, 10:40
lbencic Hi.
I'm familiar with using the AFS functionality and I use it allot.
I was trying to avoid the use of ASF because of what you mentioned "Requires fairly current Porting Set / Standard Program patches (specifically, ttstpapihand library should be current)."
I dont know if the customer has the correct Porting set and dont want to force him to install it.
So I was looking for a different solution
Thanks any way.
Ilan S
lbencic
5th August 2002, 16:58
There are other methods that do not require a porting set upgrade. The 'rush' program developed and posted on this board can be modified and used to call standard session sections without the porting set upgrade. My company also has a product that was developed for our Baan IVb2 customers that is very similar to the stpapi generate library functionality that works with any version.
So it is possible - generally using the #pragma include session and querying the object logic using bic_info.
Post back if you have questions using 'rush' - or contact me if you are interested in our library generator.
Good luck!