This topic is locked

After record deleted event

2/16/2023 9:16:22 AM
PHPRunner General questions
F
Fabio74 author

Dear all,
I need to show a confirmation box on after record deleted event which, if yes, triggers the deletion of some records on another table.
How can I get this?
Thanks in advance.

Sergey Kornilov admin 2/16/2023

You cannot do this. AfterDelete event happens on the server side and you cannot show any confirmation boxes from the server side code.

F
Fabio74 author 2/17/2023

Thanks admin for the feedback,
so i think i will use a custom button instead of the standard one.
I have another question: if I place a button on each record on the grid I can get the value of a field by the statement
value = row.getFieldValue("fieldname") on Client Before.
But if the button is at the top of the page how can I read the values of the fields always on Client Before?
Thank you.