I am having problems with a part of a program...
I have programmed a ScrollView to show a list of items from a database. This works fine (just as I want it to).
The Scrollview is accessed from the "main" sreen. I have simulated the use in the attached program.
I have two problems:
1) When I open the list, everything works fine. I click on an item, the row gets colored and the "TickID" is shown in the Title Bar. Now when I close the list (Press "Menu" then "Close List"), and open the list again (press the button on the main screen), the list comes up fine, but when I click on the list, it does not show the color like it did the first time. The value of "TickID" is correct... Just no coloring of the row I'm clicking on. WHY????
2) When I delete a row (Click on row, "Menu", "Delete", "OK"), it removes the row and (apparently) the data from the database. But... When I now click on a row below the deleted row, I get the wrong "TickID" - it seems to get the ID from the item in that row before it was deleted. WHY???
I have struggled all day with this and can not figure out what is going on... I need the help of someone a bit smarter than me. I know there's a lot of them on this forum...
Please help!
I have programmed a ScrollView to show a list of items from a database. This works fine (just as I want it to).
The Scrollview is accessed from the "main" sreen. I have simulated the use in the attached program.
I have two problems:
1) When I open the list, everything works fine. I click on an item, the row gets colored and the "TickID" is shown in the Title Bar. Now when I close the list (Press "Menu" then "Close List"), and open the list again (press the button on the main screen), the list comes up fine, but when I click on the list, it does not show the color like it did the first time. The value of "TickID" is correct... Just no coloring of the row I'm clicking on. WHY????
2) When I delete a row (Click on row, "Menu", "Delete", "OK"), it removes the row and (apparently) the data from the database. But... When I now click on a row below the deleted row, I get the wrong "TickID" - it seems to get the ID from the item in that row before it was deleted. WHY???
I have struggled all day with this and can not figure out what is going on... I need the help of someone a bit smarter than me. I know there's a lot of them on this forum...
Please help!