Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Regular Visitor
Posts: 1
Registered: ‎04-20-2013
My Device: blackberry playbook
My Carrier: verizon

List Views and Data Models

I'm attempting to save and load a JSON data model into a listview in my app. It loads up initially via a couple lines of C++ in the app.cpp file. However, I don't know how to save new cells into this JSON database. I don't know how to reload the ListView after I save. Finally, I don't know the restrictions regarding what I can and cannot save in a JSON database. Can anyone offer some assistance?

Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: List Views and Data Models

JSON isnt a database, its a serialized text format. You can save anything that is a can be represented in text. You can use QVariantList or QVariantMap as the base of a json string which can then be serialized using JsonDataAccess and write that to a file if you want to save it for later.
Like all of my posts
Posts: 692
Registered: ‎08-09-2010
My Device: Not Specified

Re: List Views and Data Models

Hi mrplants,


   Please follow below link











feel free to press the like button on the right side to thank the user that helped you.