Hi
I'm struggling with something that would seem rather obvious, but it does not work for me.
I have a tableview that I'm populating with data retrieved from a REST API service online. I'm polling data every 30 seconds and need to refresh the tableview accordingly.
I tried to clear the existing list of items with this:
and then to add the new data with this:
However, my table still contains the old rows that I wanted to clear, so I end up with duplicate data.
I think I'm missing something on how cleaning and refreshing data in a tableview works...
I'd appreciate your help!
Thanks
Andrea
I'm struggling with something that would seem rather obvious, but it does not work for me.
I have a tableview that I'm populating with data retrieved from a REST API service online. I'm polling data every 30 seconds and need to refresh the tableview accordingly.
I tried to clear the existing list of items with this:
B4X:
TableDevices.Items.Clear
B4X:
TableDevices.Items.Add(row)
However, my table still contains the old rows that I wanted to clear, so I end up with duplicate data.
I think I'm missing something on how cleaning and refreshing data in a tableview works...
I'd appreciate your help!
Thanks
Andrea