I was wonderign how a refresh of a web client should work.
I have a filter created on the onShow and all is good, it does what it is supposed to.
However if I clear the global variable globals.glbl_url and then have a button for the user to refresh which simply calls the onShow method the data in the tableview is not refreshed. If I click on another tab panel and then return to the same page the data then refreshes. The onShow method is called in both scenarios however the data only refeshes after I leave the form and return.
Any suggestions how I can use a refresh button on the form without having to leave and return to make a refresh work ?
Thanks.
function onShow(firstShow, event) {
databaseManager.removeTableFilterParam(globals.glbl_database,'scrapeList')
databaseManager.removeTableFilterParam(globals.glbl_database,'scrapeListUrl')
controller.loadAllRecords()
var success = databaseManager.addTableFilterParam(globals.glbl_database,'scrapeValues','userid','=',globals.glbl_uname,'scrapeList');
controller.loadAllRecords()
if (globals.glbl_url != "" && globals.glbl_url != null)
{
success = databaseManager.addTableFilterParam(globals.glbl_database,'scrapeValues','url','=',globals.glbl_url,'scrapeListUrl');
controller.loadAllRecords()
}
}