šŸ”„ Bulk clear, edit, restore and delete columns plus Undo action

what kind of java did you use exactly I didn’t get it

Glide Java column.

But java script column doesn’t edit any column

It edits itself :wink:

Side note: Java and JavaScript are not the same thing. They are both programming languages, but are vastly different. Glide supports a JavaScript column. It does not support Java.

4 Likes

Yes that’s correct and that’s why I corrected him and still I don’t understand the coding behind it with using native glide features

What is this sorcery?

1 Like

I’d recommend removing the built-in filter for the collection as it doesn’t work on a filtered list. You’d likely have to build out a custom filter/choice component. Would be interested to see how this works — maybe a tutorial video on how it’s set up?

It works well. There is no need to remove a filter. It will only not work when you clear the category column because it is based on that column.

Yes, I’m aware of that. The Glide column is for a sandboxed JavaScript… I did not see the reason to be so precise about that :wink:

You made my day… love that comment :rofl: It feels like Magic… especially the Undo button.

If you filter, bulk change the quantities, then unfilter, all items have their quantities changed to the new value.

Yes, did you expect a different result? When you use the filter, it will not delete items from the list; it just hides them from view… so all the actions will affect hidden objects…
You can delete the items or edit them individually.
I can create a special action to edit only filtered items… then yes… I would need a custom filter, not a native one.
The goal of this App was to bulk edit the whole column… if I have a paid request… I can keep adding more functions and create a monster system :wink:

Yes, the expected result is that only the visible items should be modified — this is why I suggested a custom filter. It’s a cool concept, but I wouldn’t include the native filter as it clears rows that are out of view when the filter is applied. Just a suggestion!

Hmm… that would not be my intuitive expectation… when I filter the list and do the action… I would expect all items, including hidden ones will be affected by the action… unless the purpose of filtering is to exclude these items from the action…
The main goal of this App is to show the possibility of bulk edits on the back end…
I know there are many coll functions I can add to this App, and I will when I have motivation and time :wink:

My concern would be someone filtering the list, navigating away, then coming back and forgetting that they filtered the list. They do a bulk operation and it clears/changes the values of every column in the table. You’ve only got 10 or so rows of data there, but if it was a real data set and it was filtered to show 100 of 10,000 records, I think the expectation of most would be that a bulk operation would only affect the items seen on screen at that time. Just my two cents.

PS I’d love to see how this is done and I’m sure others would too. A video/explanation would be popular!

Yes, I agree… BTW you can add more rows… I have an App with unlimited rows, and I have this system there to bulk edit data from the back end, and I have conditions on what and how to edit it, but unfortunately, I can’t post it here… they will ban me again :wink:
So for safety reasons, I’m only posting the ā€œnativeā€ solutions, LOL.

About the video/explanation thing… I don’t want to take away the glory from @Robert_Petitto. My job is to create new techniques… :stuck_out_tongue_winking_eye:

I made your request… now you have two filters, Custom and Native… Custom filters will affect editing… only visible items will change… Enjoy! :star_struck:

And I did some facelifts since there are so many visitors there… I did not expect that, LOL.

2 Likes

Each user have independent undo or it total for all users?

Independent… USC… (Glide updates: 0 Glide edits: 0 Glide syncs: 0)

How is it possible?

Non signed in users, editing USC columns