Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 6th April 2017, 18:36
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 573
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Red face Getting a process id of session in AFS call

Hello everybody,

I am doing stpapi.put.field. This will invoke this particular session in background. Is there any way to get process id of this session ?

Thanks,
Vishal
Reply With Quote
  #2  
Old 7th April 2017, 08:34
sachinbaan's Avatar
sachinbaan sachinbaan is offline
Senior Member
 
Join Date: Oct 2013
Posts: 166
sachinbaan is on a distinguished road
Baan: ERP LN - DB: MS SQL - OS: Microsoft Server
Hello,

You can make use of pstat().

for example,
Code:
 	procid = -1
 	procid = pstat( procid, progname, info )

 	while procid >= 0
 		procid = pstat( procid, progname, info )
 		if progname = "tdpur4100m900" then
 			kill(ids)
 		endif
 		ids = procid
 	endwhile
In above example, you can make use of predefined variable 'parent'. it will return id of your current session.
__________________
Regards,
Sachin

TO DREAM THE PERSON U WOULD LIKE 2 B, IS 2 WASTE THE PERSON U R.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to call session specific commands in afs jojovalenton AFS/DDC/OLE: Function servers 9 26th March 2014 14:54
zoom to correct business partner jojovalenton Tools Development 5 14th October 2009 11:26
AFS and session tfgld1107s000 jhargett AFS/DDC/OLE: Function servers 1 26th January 2006 19:36
Excute a form command of AFS session en@frrom AFS/DDC/OLE: Function servers 4 30th May 2005 15:54
Handle sub session in AFS SriksAdi AFS/DDC/OLE: Function servers 1 28th July 2004 15:36


All times are GMT +2. The time now is 10:56.


©2001-2017 - Baanboard.com - Baanforums.com