7/6/2025 3:30:28 PM
|
|
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!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Get logged in user and populate owner lookup on insert defects screen
Posted: 15 May 09 3:00 PM
|
I am trying to get the id of the logged in user so I can populate an owner lookup I have added to the insert defects screen. I am using the C# code snip already in place in the load action of the form. I am trying to use this code I got from the FAQ document:
Sage.SalesLogix.Security.SLXUserService userService = Sage.Platform.Application.ApplicationContext.Current.Services.Get() as Sage.SalesLogix.Security.SLXUserService; IUser user = userService.GetUser();
The error I am getting is: c:\Inetpub\wwwroot\SlxClient\SmartParts\Defect\InsertDefect.ascx(464): error CS0246: The type or namespace name 'IUser' could not be found (are you missing a using directive or an assembly reference?)
What using do I need to add and can I just include it at the top of the code snip? I have not done much with code snips yet.. Thanks |
|
|
| |
|
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!
|
|
|
|
|
|
|
|