Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Examples

How to reload a page

Scroll Prev Next More

 

To reload a page, use the following code in the JavaScript OnLoad event:

 

 

pageObj.reload({a:'reload'});

 

 

Example 1: Reload a page from event that belongs to the same table

 

For instance, we want to reload a list page after inline edit or after edit in popup.

 

pageObj.reload({a:'reload'});

 

Example 2: Reload a page that belongs to another table

 

For instance, on the dashboard page we have a button that adds a new customer and we want to reload Customers table after.

 

1. Add the following code to Javascript OnLoad event of the Customers table.

 

window.customersPage = pageObj;

 

 

2. Add the following code to any Javascript event where you want to reload the Customers table. Can be ClientAfter event of any button.

 

if( window.customersPage ) {
window.customersPage.reload({a:'reload'});
}

See also:

JavaScript API: RunnerPage object

Events: JavaScript OnLoad

Choose pages screen

List page settings

JavaScript API