D DawningTruth Active Member Licensed User Mar 19, 2019 #1 What is the best datatype if you want to store a UI element in a SQLite database? e.g. All the Data Associated with a Label or a more complex element. In my case the UI elements are quite complex, a simple copy to value approach won't work.
What is the best datatype if you want to store a UI element in a SQLite database? e.g. All the Data Associated with a Label or a more complex element. In my case the UI elements are quite complex, a simple copy to value approach won't work.
DonManfred Expert Licensed User Longtime User Mar 19, 2019 #2 You can not serialize UI Elememts. Best you can do is to save all the Infos you need to rebuild the UI. The complexity depends on you UI Element. There is no automatic way. Check Statemanager source for some help on how to get the Infos. But it will not work for more complex things. https://www.b4x.com/android/forum/t...applications-settings-and-state.9777/#content Upvote 0
You can not serialize UI Elememts. Best you can do is to save all the Infos you need to rebuild the UI. The complexity depends on you UI Element. There is no automatic way. Check Statemanager source for some help on how to get the Infos. But it will not work for more complex things. https://www.b4x.com/android/forum/t...applications-settings-and-state.9777/#content
D DawningTruth Active Member Licensed User Mar 19, 2019 #3 DonManfred said: You can not serialize UI Elememts. Best you can do is to save all the Infos you need to rebuild the UI. The complexity depends on you UI Element. There is no automatic way. Check Statemanager source for some help on how to get the Infos. But it will not work for more complex things. https://www.b4x.com/android/forum/t...applications-settings-and-state.9777/#content Click to expand... Thx Don, I will look into that option. Upvote 0
DonManfred said: You can not serialize UI Elememts. Best you can do is to save all the Infos you need to rebuild the UI. The complexity depends on you UI Element. There is no automatic way. Check Statemanager source for some help on how to get the Infos. But it will not work for more complex things. https://www.b4x.com/android/forum/t...applications-settings-and-state.9777/#content Click to expand... Thx Don, I will look into that option.