Android Question Header/Details - best practice to store

eurojam

Well-Known Member
Licensed User
Longtime User
This sounds like a database solution where you can easily manage 1:many relations. If you want to make it without a database, i would choose a list:
B4X:
Type Order (id_order As Int, OrderDetailList As List)
where you put the details in the list of your type....
 
Upvote 0

Bobi

Member
Licensed User
Longtime User
This sounds like a database solution where you can easily manage 1:many relations. If you want to make it without a database, i would choose a list:
B4X:
Type Order (id_order As Int, OrderDetailList As List)
where you put the details in the list of your type....

So do you suggest to append (type of) OrderDetails to list. Seems to be a nice aproach.
 
Upvote 0

Bobi

Member
Licensed User
Longtime User
yes, but I would regard the database as the first choice.
Sure. But not in my case. All information resides in a database behind an web services. Mobile application is just a ... window where I can see/manipulate data. It's not working "offline" so I don't need to store data. Hope puting some information in memory it's not a tragedy :D
 
Upvote 0
Top