browse with delete button
Posted: Wed Apr 15, 2020 9:41 pm
I wonder if anyone has done this at some point and I will appreciate if anyone can help me with (parts of) this. The idea is to have delete buttons in each row of a browse table. If a button is clicked, the corresponding record is deleted from the database. Of course it must be checked if the logged in user has the delete permission of the form.
The task can be broken down into:
1) Add delete buttons to browse rows
2) Intercept click event on a button
3) Show confirmation message ("Delete This Record?")
4) Check delete permission of user / form (with PHP ?) and show an error if no permission
5) Delete the record.
6) Refresh the browse screen
Any help would be greatly appreciated!
The task can be broken down into:
1) Add delete buttons to browse rows
2) Intercept click event on a button
3) Show confirmation message ("Delete This Record?")
4) Check delete permission of user / form (with PHP ?) and show an error if no permission
5) Delete the record.
6) Refresh the browse screen
Any help would be greatly appreciated!