Reset/Clear Quick Edit fields for specific user

Hi, I am using a quick edit detail view to filter data in a slice. I created a dashboard view with two slices.

Right hand side is the slice of data I want to filter and left hand side is the filter content.

I know you can manually clear the quick edit items here but there may be quite a few of these, so I created an action for the user to reset the data of all columns. But when I click the action nothing happens.

This is my action - This should select the user email that holds the filter content

The Referenced action:

User Table structure/column data

User Email User Name User Role Type Filter Order Status Filter Collection Status Filter Order Type Filter POD/Collection Note Upload Filter Request Status Filter Order No Filter Return Reason Filter PIN No Filter Supplier Invoice No Filter Site Query Filter Site Query Reason Filter Procurement Query Filter Procurement Query Reason Filter Sign Off Required Filter Invoice Order No Filter ETA Filter Date Required

Your action appears to be setting the first four column values with the expression " ", which would set the value to a single space. To blank the value use the expression "" as done in the last two columns of the action.

3 Likes

Thanks Steve, I tried this out but still not getting the reset

image

Why are you using action for execut ean actoin on set of rows instead of set the some columns in this row?

It looks like your records used to filter slice is always single row and perisis to login users.

Then just clear the field value for that pariticular row.

I suspect your expression for action against set of rows is just not working properly, but better to change the action type to see how it goes.

1 Like

The reason I wanted to execute on a set of rows is because I want to clear the filter for specific users, I want the filters to be personnel to whoever has logged in.

If I have two different users within the filter and use a set row action, one user could be selecting the data to filter and another user could clear all inputs for all users?

Is there a particular way I can select the current row and only allow that to be updated?

Why dont you apply security filter for user table?

Not sure I understand the benefit in this scenario?

I have a current_user slice that stores the currently logged user details to alter permissions?

image

If your user table is designed to present just a single row against per log in users, then this table should alwasy hold just single (one) row. When you present detail view out of this table, then it is kinda of “fixed” view presenting to the log in user dynamically.
Placing the action over this table is just firing against this particular single row.
No need to fire action against multiple rows.
Thats what we normaly do.

1 Like