Filter an action depending on the slice

I have a table divided into 3 slices and sometimes in one of these I have to edit information, the problem with enabling this action is that users are not allowed to edit slice 3, only number 2. How can I enable this action so that the user can edit slice 2 and I as administrator the number 3?

Welcome to the community!

Just a clarification, you do not edit or add rows to a slice, you rather write to the table. A slice is just a filtered subset of the table that is not standalone.

However, you can base app views on the slice, and here is where your action appears. You can control the visibility of your action by opening it in Behavior and write a relevant expression in the Only if this condition is true field inside the action.

The expression should make use of the CONTEXT(“View”) function, to determine whether the action should be shown to the user in a particular view.

4 Likes