Problem with my table update

Hello Community,

Something weird is happening with my App,
I canโ€™t delete or uptade any details with a specefic table despite the limitation formula iโ€™m using that should allows me to make ALL CHANGES :

IFS(
USERSETTINGS(โ€œUSER ROLEโ€)=โ€œSUPER ADMINโ€, โ€œALL_CHANGESโ€,
USERSETTINGS(โ€œUSER ROLEโ€)=โ€œADMINโ€, โ€œALL_CHANGESโ€,
USERSETTINGS(โ€œUSER ROLEโ€)=โ€œCHEF ATELIERโ€, โ€œUPDATES_ONLYโ€,
USERSETTINGS(โ€œUSER ROLEโ€)=โ€œMAGASINIERโ€, โ€œREAD_ONLYโ€
)

iโ€™m using USERSETTINGS formula to limit access to the table DETAILS CMD

Bellow some captures in order to get more details about this issue :

1- as you can see on this view i canโ€™t modify anything on the table "DETAILS CMD"

2- this is capture of formula iโ€™m using to limit access to the table "DETAILS CMD"

3- the table โ€œDETAILS CMDโ€ is a part of another table name COMMANDES bellow is a capture of limitation formula iโ€™m using with the table COMMANDES iโ€™m thinking that this informationmaybe be usefullโ€ฆ

Thanks in Advance

Solved Solved
0 5 288
  • UX
1 ACCEPTED SOLUTION

Waitโ€ฆ you have a User_Role column in your user table?

- Then why are you using UserSettings? #NoPoint

INDEX(Current_User[User_Role], 1)


To answer you question

  • Whatโ€™s happening here is a long-known see-saw bug with UserSettings.
    • UserSettings often has problems with initial values, often requiring a user to open the Settings page in order to populate the value of that formula.

The solution is to stop using UserSettings for anything other than extra settings people can change - which your system doesnโ€™t rely on for basic functionality - and even then youโ€™re better served by creating a space in your User table to hold any of these settings.

All and all, Usersettings was a great idea but poorly executed; it was implemented at a time before actions were a thing, so we needed a way for people to store temporary variables easily.

  • Now itโ€™s much easier to handle situations like this with a regular table, actions, slices, quick edits on detail views, etc.

View solution in original post

5 REPLIES 5

Are you using an initial value or app formula to determine the user role?

Hello,

YES iโ€™m using App Formula to determinate the user Role :

ANY(SELECT(USERS[USER ROLE], ([NOM Dโ€™UTILISATEUR]= [_THISROW].[USER_NAME])))

Hello

Any Feedback Please @MultiTech_Visions

Waitโ€ฆ you have a User_Role column in your user table?

- Then why are you using UserSettings? #NoPoint

INDEX(Current_User[User_Role], 1)


To answer you question

  • Whatโ€™s happening here is a long-known see-saw bug with UserSettings.
    • UserSettings often has problems with initial values, often requiring a user to open the Settings page in order to populate the value of that formula.

The solution is to stop using UserSettings for anything other than extra settings people can change - which your system doesnโ€™t rely on for basic functionality - and even then youโ€™re better served by creating a space in your User table to hold any of these settings.

All and all, Usersettings was a great idea but poorly executed; it was implemented at a time before actions were a thing, so we needed a way for people to store temporary variables easily.

  • Now itโ€™s much easier to handle situations like this with a regular table, actions, slices, quick edits on detail views, etc.

Thank You so much !
Those details helped me a lot

Top Labels in this Space