Question
· Sep 6, 2017

Auto refresh a Table Pane

Hi

Please can someone send me an example of how to auto refresh a table pane. 

Thanks

Nigel

Discussion (2)1
Log in or sign up to continue

Hi

 

WRC helped answer this:

 

Here is the code to build into your TablePane form:

 

ClientMethod onloadHandler() [ Language = javascript ]
{
zenPage.IntervalRefresh();
myVar1 setInterval(zenPage.IntervalRefresh,1000);
}

ClientMethod IntervalRefresh() [ Language = javascript ]
{

var table zenPage.getComponentById('TableName');
//Optional if Snapshot is used
table.executeQuery()
table.refreshContents()
}

Note that the line table.executeQuery() is only required if your TablePane uses snapshot mode

 

Nigel