I have many webpages in an app. Every page has listboxes that are loaded when the page is loaded. The problem is that data is kept when the user moved from one page to the next. How do I fix this?
Page A and Page B both use the same menu.
When a page is loaded, each listbox loads its own data from the database.
All is fine on the first load. But when the user wants to change BACK to a page, I want the data in the list box cleared. This is because the user may have selected something in the listbox and that fills other controls with data.
Here he what I tried so far:
In the SHOWN even for a webpage - ListboxA.deleteallrows
In the CLOSE event for a listbox - ListBoxA.deleteallrows
Yet when the user changes pages (with the menu - which calls the SHOW event for the page) the list box still has old data.
I remember for desktop, in the old days, I’d hide this listbox and update it, then show it again. Is this an option?
Like I say, the listbox will update but still shows the old data until the update is complete. Who has sum suggestions for me to try?