I need some more information on this. What i undersatnd is you are updating some value in the database but the updated value is not getting displayed.
Am i correct?
Hi Kupratik, that is exactly it.
If I put a button on the screen called update and send it off to recall the data again, it succeeds.
so if I enter data in screen one. It then updates the database and appears to go through the process of reloading the arrayCollection then via tab navigation switches screens to a screen that shows the list of data and should include the changed data, it shows the old data until I hit the button 'update'. The update button brings you back to the same screen, the list and all it does is call the same process of reloading the arrayCollection.
this happens in more than one scenario. I.e. If I want to change the user name, I enter the new user name (and force a state change) and store that to a ddatabase (AIR) then reload the arrayCollection and then change state back to where we started and the old email address is registered until I close the program and load it up again, hey presto, new data.
It seems to be something to do with tab navigation not refreshing the data or the screen, i need to some how force an update and so far hit a lot of dead ends.
the answer lay in the navigator tabs. I have answered more fully in a another related question. But basically what happens in a tab, needs to stay in the tab!
I was trying to add data in one tab and then move to another tab that showed a datagrid, The issue was I could not get the datagrid to update.
When i moved the add data form into the same tab and seperated into states, it all worked. Hoorah!