INTERNET APPLICATION DEVELOPMENT
MID MARKET ERP DEVELOPMENT
By Kristi Feng
Sage 300 ERP provides COM API to allow us to write programs to interact with the system. We usually use Session Manager to handle the sign-on, so we don't need to know a user's id and password. Session Manager uses the open session and if the user has more than one company open, it asks the user to select a company to open.
Starting with Sage 300 ERP version 5.4, if a user has multiple companies open when he launches a custom program, the software asks to open a new session by selecting a company and entering the user's id and password. Any future launches of the custom program is tied to the same session company. This was designed to allow external applications to open a session once and use that session. We would recommend to always force a new session with the custom program or ask the user to manually terminate all sessions in the Sign-on Manager.
But, with Sage 300 ERP 2014, we can just add the $objecthandle$ in the Arguments fields when we create the desktop shortcut and add a few additional code lines in our VB Program to work with the objecthandle. This will eliminate the login confusion for users.
Please find additional details from Stephen Smith's Blog Post