šŸ”„ 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