This topic is locked

Refresh Dashboard

9/4/2018 1:38:08 PM
PHPRunner General questions
P
PaulM author

I have a dashboard that has several stand alone tables in it. When I insert an new record in a table though it updates and doesn't allow me to edit it straight away, I have to do a physical refresh of the page (F5). Could somebody please help in telling me how to refresh a dashboard after inserting a new record?
I've tried:
this.on('afterEdit', function(fieldsData){

location.reload();

}
this.on('afterAdd', function(fieldsData){

location.reload();

}
Thanks

R
ruud 9/5/2018

Is this of any help? I have used this years ago and it worked.
Inline Add & Reload page



List page - JavaScript OnLoad

//direct add

pageObj.inlineAdd.inlineAdd();
//reload page / back to list

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

location.reload();

} )

P
PaulM author 9/5/2018



Is this of any help? I have used this years ago and it worked.
Inline Add & Reload page



List page - JavaScript OnLoad

//direct add

pageObj.inlineAdd.inlineAdd();
//reload page / back to list

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

location.reload();

} )


Thank you Rudd but unfortunately this didn't work I still have to manually refresh the page to be able to edit it after inserting a row.