Kill Sessions in Dynamics NAV
In the older versions of Microsoft Dynamics NAV where the classic client was available you could go to the sessions table and just delete a session to kill it. This was very useful for a number of reasons but it does not work like that anymore in the windows client of version 2013 and 2015.
Fortunately this feature can easily be replicated by adding an action item to the ribbon on the sessions page in Dynamics NAV.
Here is how you can add a ‘Kill Session’ action item to the sessions page:
Open page 9506 in design mode through the development environment and add a ‘Kill Session’ action item. Something like below.
Then write the following code to the action item.
The above text constant Text50000 just says ‘Kill Session?’.
To make the action item look a bit better you might also want to set the Image and Promotion properties, like below.
That’s it! 🙂
Now when you run the sessions table you can use the new ‘Kill Session’ action item in the ribbon to kill a session. Useful if a session is hanging or has been idle for a while. Also very useful if you start the job queue with a client and you want to stop the background session that is running.
Nice! 🙂
31 Comments
Leave your reply.