Hi All,
I created a simple program and attached it inside SAGE 300 using Program Object. Now, I want that when they open the program (A) it auto-detect the current login user and company details.
I'm using the below code, but I don't want the user to login and select again to the company.
Is there any other way to achieved the auto-login or Single Sign-on.
Thanks,
I created a simple program and attached it inside SAGE 300 using Program Object. Now, I want that when they open the program (A) it auto-detect the current login user and company details.
I'm using the below code, but I don't want the user to login and select again to the company.
Code:
Dim mAccpacSignOn As AccpacSignonManager.AccpacSignonMgr
Dim mAccpacSession As AccpacCOMAPI.AccpacSession
Dim mAccpacDBLink As AccpacCOMAPI.AccpacDBLink
mAccpacSignOn = New AccpacSignonManager.AccpacSignonMgr
mAccpacSession = New AccpacCOMAPI.AccpacSession
mAccpacSession.Init("", "XY", "XY1000", "61A")
mAccpacSignOn.Signon(mAccpacSession)
mAccpacDBLink = mAccpacSession.OpenDBLink(AccpacCOMAPI.tagDBLinkTypeEnum.DBLINK_COMPANY, AccpacCOMAPI.tagDBLinkFlagsEnum.DBLINK_FLG_READWRITE)
MsgBox(mAccpacSession.CompanyID)
Is there any other way to achieved the auto-login or Single Sign-on.
Thanks,