Solved

Limit certain users from adding/decreasing labor lines (NPU) in FSM.

  • 6 January 2023
  • 4 replies
  • 68 views

Userlevel 1
Badge +8

Hi Experts 

This is raised regarding our customer concern 

Customer wants to Limit certain users from adding/decreasing labor lines (NPU) in FSM.

I thought of achieving that by adding access groups for roles , Is that possible to do like that ? 

if that be done can you provide some guidance to achieve this please 

Else please suggest any other ways how to Limit certain users from adding/decreasing labor lines (NPU) in FSM.

 

Thanks and Regards 

Shobana 

icon

Best answer by Shneor Cheshin 9 January 2023, 22:42

View original

4 replies

Userlevel 6
Badge +26

Hey @Shobana 

What client is it? Web? Mobile? Smart? Other?

What is common between these users? License? Team? Name? Other?

Please provide some more details so we can assist you.

Cheers!

Userlevel 1
Badge +8

 

HI @Shneor Cheshin , 

Thanks for the response 

  1. Customer uses FSM Smartclient 
  2. Customer mentioned they can make any common link between those users whether it is role, team, or whatever might be needed. Currently the role differentiates the users and their access level. 

Can you able to assist me with these please 

Thanks and Regards 

Shobana 

Userlevel 6
Badge +26

Hey @Shobana 

I can think of a few ways to achieve this. Each solution has it pros/cons.

Solution 1

Create a new screen. For example C_[ROLE_NAME]_TASK (replace [ROLE_NAME] with the actual name you wish)

In the new screen you can hide/remove the ‘New’ button (or other fields/controls), so users will not be able to add new records.

Then in the role screen assign the new screen to that role, under the ‘Screens’ tab.

Pros - Easy to configure. Cons - Any change to the screen will require updating 2 (or more?) screens.

Solution 2

Create a client script. Pseudo-code will be something like the following

var currentUser = getuser()
var role = currentUser.role
if(role == [ROLE_NAME])
setControlEnabled('New Button', false)

Assign the script to the screen load event.

Pros - Easy to maintain. Cons - Can be complicated code if the logic is not straight forward. i.e. based on role.

 

Let me know if that helps or you might have more/other concerns.

Cheers!

Userlevel 1
Badge +8

Hi , 

Thanks @Shneor Cheshin for the solution 

Regards 

Shobana 

Reply