Skip to main content
Solved

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


Forum|alt.badge.img+8
  • Sidekick (Employee)
  • 22 replies

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 

Best answer by Shneor Cheshin

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!

View original
Did this topic help you find an answer to your question?

4 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • 1143 replies
  • January 8, 2023

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!


Forum|alt.badge.img+8
  • Author
  • Sidekick (Employee)
  • 22 replies
  • January 9, 2023

 

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 


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • 1143 replies
  • Answer
  • January 9, 2023

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!


Forum|alt.badge.img+8
  • Author
  • Sidekick (Employee)
  • 22 replies
  • January 9, 2023

Hi , 

Thanks @Shneor Cheshin for the solution 

Regards 

Shobana 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings