Tab - tableview + database reload
I have a 'search' and 'search history' tab in my application.
Every search executed under this tab gets inserted into my local db.
However the new search is not reflected in the tableview retrieving data from the DB in the 'search history' tab when i browse to it, after searching.
The latest search, however, gets loaded when I exit the app and relaunch it.
I need some help in figuring out how to trigger the tableview reload without exiting the app.
SOLUTION UPDATE:
I feel 'noobish' for asking this question but it was really so simple
I added a 'focus' eventlistener for the window housing the tab to load the data.
win.addEventListener('focus', function()
{
loadDBdata();
});
1 Answer
-
Johnny, I know its been a while since you answered your own post. But how would i go about solving this issue if my table view is inside a tabgroup?