david7
22nd May 2012, 13:41
Hi,
I have a program that in some case it will kick the user out. That is a mandatory requiremnt from my boss.
I was able to kick a user by killing all the processes. The problem is, that in this way, there are a lot of application locks, as a result. And I need to remove these locks.
I have tried the appl.delete function, but I will have to give it specific details like the table code and record to use it. for example, a lock on a PO I will have to give it tdpur040 & 32532 (PO number), but I do not have this information! All I have is the session PID and prgoram name (tdpur0401m000 for example). I have looked at all the following functions and there are not useful for my case:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_appl_application_locks_synopsis
Is there anyway that I can remove ALL the locks that the current user has?
- D7
I have a program that in some case it will kick the user out. That is a mandatory requiremnt from my boss.
I was able to kick a user by killing all the processes. The problem is, that in this way, there are a lot of application locks, as a result. And I need to remove these locks.
I have tried the appl.delete function, but I will have to give it specific details like the table code and record to use it. for example, a lock on a PO I will have to give it tdpur040 & 32532 (PO number), but I do not have this information! All I have is the session PID and prgoram name (tdpur0401m000 for example). I have looked at all the following functions and there are not useful for my case:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_appl_application_locks_synopsis
Is there anyway that I can remove ALL the locks that the current user has?
- D7