Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

browse with delete button

Questions related to using nuBuilder Forte.
Post Reply
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

browse with delete button

Unread post by marc »

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!
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: browse with delete button

Unread post by kev1n »

Hi marc,

I created a little tutorial.
delete_row.gif
If you have questions, just ask.
You do not have the required permissions to view the files attached to this post.
Last edited by kev1n on Sat Apr 18, 2020 5:38 pm, edited 1 time in total.
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

Re: browse with delete button

Unread post by marc »

Hi Kev1n, looks good! Thank you so much for your effort and time. Really really appreciate!
I'm going to study your code more closely and if questions arise, I will let you know.
Post Reply