Auto refresh a Table Pane
Hi
Please can someone send me an example of how to auto refresh a table pane.
Thanks
Nigel
Comments
Hi Nagel,
You can add a timer to the page and when the timer fires, refresh the tablePane with
Heloisa
Hi
WRC helped answer this:
Here is the code to build into your TablePane form:
{
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