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!
|
|
Screen Release
Posted: 15 Sep 08 12:12 AM
|
I am done with my customization in Saleslogix Web Client and now it is my release time, during this moment I have got one critical issue to release all the forms and all the options which are available in the screen i.e.,Remove Account & Contact, Move Contact etc., to the user. At the beginning I thought there will be some place to retrict all these things but unfortunately I am unable to find it. Can anybody suggest me a solution for this problem? Basically I need to restrict some of the functionalities from the screen and also to restrict some of the screens (some tabs) to the user. Please let me know the easiest way to achieve this.... |
|
|
|
Re: Screen Release
Posted: 17 Sep 08 12:20 AM
|
Please let me know whether this is a silly question or nobody is aware of providing security to the controls. |
|
|
|
Re: Screen Release
Posted: 17 Sep 08 1:14 AM
|
I guess I don't 100% understand the question. Can you describe in more detail what you are trying to do? |
|
|
|
Re: Screen Release
Posted: 18 Sep 08 3:30 AM
|
Hi Venkatesh,
I think that you need to implement Role security. In App Architect, in Security Explorer, you can create new Roles and link users to that Role.
Individual tabs can be linked to different Roles in the Portal Page (for example, if you open the Account Details portal page, you will see a "Role" drop-down for each smart part).
Within each tab you can also make calls to the IsUserInRole function to see if a user has that role (see code below). Then, you can do things like hide the Save and Delete buttons, etc.
Does that help?
Stephen
// First, I need to get the current User Sage.SalesLogix.Security.SLXUserService userService = Sage.Platform.Application.ApplicationContext.Current.Services.Get () as Sage.SalesLogix.Security.SLXUserService; Sage.Entity.Interfaces.IUser user = userService.GetUser(); // Get the user name String username = user.UserName.ToString();
bool userIsInRole = Sage.SalesLogix.Security.User.IsUserInRole(username, "MyRole");
|
|
|
|
Re: Screen Release
Posted: 19 Sep 08 12:52 AM
|
Thanks Stephen. Do we need to manually check in all the places wherever we need to hide or show the button? |
|
|
|
Re: Screen Release
Posted: 19 Sep 08 2:54 AM
|
In the web, you need to turn on a button if you have turned it off earlier - it won't automatically reset. So you will have to code it.
|
|
|
|
Re: Screen Release
Posted: 15 Oct 08 2:39 AM
|
Hi Stephen,
Can you please tell me how to restrict navigation for a specific users? For tab we have Allow roles combo but for navigation there is no option for setting the roles. |
|
|
|
Re: Screen Release
Posted: 15 Oct 08 4:10 PM
|
Hi,
Have you tried coding the buttons as Visible = false? I haven't tried this myself.
Each button and menu has a control ID.
Stephen www.slxmaster.com
|
|
|
|
Re: Screen Release
Posted: 15 Oct 08 10:56 PM
|
Hi Stephen, Thanks for your response. For button there is no issue, but for Menu and left Navigation I don't know how to restrict? Could you please help me on this? |
|
|
|
Re: Screen Release
Posted: 16 Oct 08 2:22 PM
|
Hi,
Like I said before, I haven't tried this. You will need to experiment.
Stephen
|
|
|
|
Re: Screen Release
Posted: 18 Nov 08 3:18 PM
|
I made an experiment it looks like more than 50 pages I have to do modification to make it work. Please let me know if you identified anything? |
|
|
|