Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 2025 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - SalesLogix .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix .NET Extensions | New ThreadView:  Search:  
 Author  Thread: How to Get the UserName
NagaVarma
Posts: 8
 
How to Get the UserName Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: How to Get the UserName Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Stephen Redmond
Posts: 190
 
Re: How to Get the UserName Your last visit to this thread was on 1/1/1970 12:00:00 AM
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);

[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: How to Get the UserName Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/22/2025 9:28:56 AM