6/21/2026 3:30:10 AM
|
| |
| 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.
|
|
|
|
User Security
Posted: 14 May 09 3:38 AM
|
Is there a way to stop most users that will use the Web Client not to be able to use the "delete" button?
If so how would I go about this? Thank you in advance
|
|
|
|
Re: User Security
Posted: 14 May 09 7:14 AM
|
There is built in security via roles however I've had problems with it not working correctly in the past. For this I would just set the delete button to disabled. The as a custom c# snippet on load do something like:
control.Enabled = false;
if (Page.User.Identity.Name.ToLower() == "name1" || Page.User.Identity.Name.ToLower() == "name2" || Page.User.Identity.Name.ToLower() == "name3") { control.Enabled = true; }
You can also get the iUser object which is the SLX user object.
Sage.SalesLogix.Security.SLXUserService userService = (Sage.SalesLogix.Security.SLXUserService)Sage.Platform.Application.ApplicationContext.Current.Services.Get(); Sage.Entity.Interfaces.IUser myUser = userService.GetUser();
There are a bunch of different ways you can do this really...hope that helps |
|
|
| |
|
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!
|
|
|
|
|
|
|
|