DEV Community

Discussion on: How to massively update records through a Web UI?

Collapse
 
kspeakman profile image
Kasey Speakman • Edited

When I solved this problem before, there were two pieces to the solution. First a way to filter the data down to the specific items the user is interested in bulk editing. Second, a bulk edit form that was similar to the regular edit form. But you could only set data.

The user would first perform a search to filter down the items they wanted. Then those IDs would be passed to the bulk edit form.

I later added a convenience to the form where as you made changes it would send the edits to the server in Test mode. So all validations would run but nothing would be saved. If there were any errors, they would be displayed under the item where the edit failed. That was in a browser-based client. Doing that on the server side before loading the page might significantly delay page load.