I have a component A in my flex project where people can vote for their favourite artist. Someone “likes” an artist, it get’s updated in my database. There is also a component B that shows a chart of the most liked artists. I call the data from the database on creationcomplete in Flex. The problem is that when a person first votes on an artist, it will not be visible in the datagrid untill the user reloads the main page (?) or reopens the entire application. So i was wondering how i can update the datagrid everytime someone adds a vote to my database. I’m now using an update button, but that’s not very user friendly of course. Any help is welcome!
Share
Using an arrayCollection, you just make it bindable all the way through all components
Let’s say you increment your likes in comp A (Don’t forget to call the refresh() on the arrayCollection)
And now do what you have to do in your comp B