The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
How to Get the UserName 
Posted: 04 Jan 08 12:59 AM
|
How to Get the UserName who Logged into the Sales Logix with out implementing the IRunnable interface or BaseRunnable Class ,Very Urgent |
|
|
|
Re: How to Get the UserName 
Posted: 09 Jan 08 7:32 AM
|
My question is why would you not want to implement this and have the plumbing available to you. Otherwise You would have to, I believe create the COM base SLX objects and get the logged in user from the Application object.
Mark |
|
|
|
Re: How to Get the UserName 
Posted: 09 Jan 08 9:34 AM
|
Mark is correct. You need to do this through COM:
SalesLogix.SlxApplication slx = new SalesLogix.SlxApplication();
String UserName = slx.BasicFunctions.SystemInfoFor("Username"); MessageBox.Show(UserName);
|
|
|
|
Re: How to Get the UserName 
Posted: 10 Jan 08 6:51 AM
|
Stephen showed how to create and make the call in SalesLogix if you are using C# you will have to Make sure that you add a project level refrence to the SalesLogix COM objects or you will not be able to get access. If your using VB you can go the late bound route. Not as elegant but it does not need to create interop wrappers.
dim slxObject as object = CreateObject("SalesLogix.SlxApplication") dim userName as string = string.empty
if object isnot nothing then userName = slxObject.BasicFunctions.SystemInfoFor("Username") end if
MessageBox.Show(userName)
Mark |
|
|
|