Welcome!

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

Reply
Developer
Roshnal
Posts: 104
Registered: ‎04-15-2012
My Device: BlackBerry PlayBook with OS 2.0
My Carrier: N/A

JSON Models

Hi,

 

I'm completely new to Cascades and I started learning from the samples. I'm making an app similar to the Bucket List sample, but with a difference- in my app, from the initial list of tasks, there is another sublevel of tasks. For example, see this:

 

  • Groceries
    • Eggs
    • Milk
    • Cornflakes
  • Homework
    • Biology
  • Library Books
    • The Count of Monte Cristo
    • Les Miserables

 

So its basically a list within a list. How I can I do this by using JSON? The JSON model and how to access it using (preferably) QML?

 

Any help much appreciated!

My BlackBerry 10 apps: Roshnal Lihinikadu
Lots more coming up!
Please use plain text.
New Contributor
manu_dazlia
Posts: 9
Registered: ‎11-08-2012
My Device: BB 10
My Carrier: Divum

Re: JSON Models

Hi,

 

Refer to the following example. 

 

https://github.com/blackberry/Cascades-Samples/tree/master/rssnews

 

and also have a look at how DataSource works

https://developer.blackberry.com/cascades/reference/bb__data__datasource.html

 

 

 

 

Please use plain text.