0
Manipulating data from a sqlite database without using an onclick action
I have a pager/list that appears to function correctly and each class in that list has an action it calls on click that visualizes the data on a different panel.
So the app displays a pager with names on it, and if you click one of the names, another panel takes over the screen displaying all the other details associated with that name in my sqlite database.
My problem is that I need a way to move from that secondary detail panel directly to the secondary detail panel for the next name on the list. I am not really sure how to go about doing this.
I have been trying to give each class in the list an alias but when I try to access its data all of the values that I hoped would be populated by the list from the sql database are nil. I have also tried using that alias with a play function to call the action associated with the onclick value but that is also not working for me.
Any help would be appreciated. Thanks for your time!
So the app displays a pager with names on it, and if you click one of the names, another panel takes over the screen displaying all the other details associated with that name in my sqlite database.
My problem is that I need a way to move from that secondary detail panel directly to the secondary detail panel for the next name on the list. I am not really sure how to go about doing this.
I have been trying to give each class in the list an alias but when I try to access its data all of the values that I hoped would be populated by the list from the sql database are nil. I have also tried using that alias with a play function to call the action associated with the onclick value but that is also not working for me.
Any help would be appreciated. Thanks for your time!
Kundesupport af UserEcho
Then you can use the action that launches the secondary panel to scroll to the item page that one selects from the list and it will then be swipeable left and right to the rest of the data set.
You could even add arrow icons that can scroll next and back to get it the illusion that it is not a scrolling list.
Is that what you are trying to suggest?
I visualize it as leaving a single panel up and scrolling through new data "cards". Rather than closing a panel and reopening a new one every time. Unless of course the user closes it and scrolls through the name list and selects a new name to launch details for.
What I have now is that there are variables for all of the values that can change and whenever the user edits a value the display is altered and that variable. Then when the user moves to the next "card" those variables are saved in the sql table and then reset to the values from the next "card" pulled from the sql table. So there is only one set of variables at a time and they are only used to commit changes to the sql table.
Is there a way to set each card to display the values from the sql database but only populate the variables for whichever card currently has focus?
Thanks for the help.
Any idea why it only loads the data into the end of the list?