This topic is locked

reload question

12/14/2019 1:40:46 AM
PHPRunner General questions
J
jacques author

hi everybody,
I can't find the answer for my simple reload question.
I have a master table with three childs(detail)-tables.

After adding or editing a child-record I update the master-table with an insert or update query. (not using edit if inline-edit of the master-table)

Then I return to the master-table.

I have to reload the master to see the new or updated value.
I tried everything from the manual but I counldn't get it done.
Purhaps I'm doing something wrong but can anyone give me a hint
thank you

Sergey Kornilov admin 12/16/2019

If you need to reload something - you need to reload the whole page to see the changes.
However, if you need to update the value of master record without reloading the page check the following links:
https://xlinesoft.com/phprunner/docs/show_order_total_on_the_edit_page_as_the_details_table_is_updated.htm

https://xlinesoft.com/phprunner/docs/getmasterpage().htm

https://xlinesoft.com/phprunner/docs/about_grid_row_javascript_api.htm

HJB 12/18/2019

Pressing the "F5" key on the keyboard is refreshing the page content.

<meta http-equiv="refresh" content="300">



... for inspiration purposes only..., try to place above

code into the "header" of the page while the "300" stands

for 5 minutes, so, change it to wished "page refresh cycle"

by altering the "300" seconds refresh cycle into wished one.
P.S. In regard to PHP coded version, being NOT bound to a

specific URL, the coding reads:

// write the function

function refresh( $time ){

$current_url = $_SERVER[ 'REQUEST_URI' ];

return header( "Refresh: " . $time . "; URL=$current_url" );

}
// call the function in the appropriate place

refresh( 4 );

// this refreshes page after 4 seconds