This topic is locked

UPDATE/REFRESH FULL PAGE (MASTER) WHEN DELETING A REGISTER OF DETAILS

2/25/2020 3:13:27 AM
PHPRunner General questions
O
oscarmial author

Hello;
I have got a master table called "Pedido" and a details table called "Lineas", at the same time I have created a querry of lines called "Otros", both of them related to Id (Pedido) and CODDOCUMENTO (Lineas y Otros).

When I add an order, the details "Lineas" and the details "Otros" appeared from two tabs.


I need that when I delete any detail of "líneas" or "otros" it refreshes both lists of details ("Lineas" and "Otros"). It only updates so far the list from where I have deleted the register.

If it's not posible, how can I refresh the whole page? I have tried to do it in After record deleted through:

header('Location:pedido_edit.php?editid1='.$keys["Id"]);


But it gives an error.

I have tried to do it in JavaScript Onload Event with:

this.on('afterInlineDeleted', function( fieldsData ) {

window.location.reload(true);

} )


But it doesn't work.

When inserting and editing it does update the entire window with:

this.on('afterInlineEdit', function( fieldsData ) {

window.location.reload(true);

} )

this.on('afterInlineAdd', function( fieldsData ) {

window.location.reload(true);

} )


Any solution?

Thank you.