Storing currPage in %session.data
HI Community,
I would like to store a tablepane currPage variable in %session.Data, and retrieve the value when returning from a detail page back to the tablepane.
My test code so far:
{
var table = this.getComponentById('relationTable');
var pageNo = table.getProperty('currPage');
alert (pageNo)
zenPage.SetPage(pageNo)
}
ClassMethod SetPage(pageNo As %String) [ ZenMethod ]
{
Set %session.Data("currPage") = pageNo
//&js<alert(pageNo);>
}
ClientMethod Test2button() [ Language = javascript ]
{
var pageNo = ""
zenPage.GetPage(pageNo)
///alert (pageNo)
var table = this.getComponentById('relationTable');
table.setProperty('currPage',pageNo)
table.refresh
However the code does not work,
Suggestions appreciated, Thanks!