Results 1 to 3 of 3

Thread: Using Json data in Sencha touch

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Vote Rating

    Default Using Json data in Sencha touch

    Hi guys,

    First, sorry for my English skill

    I'm a newbie and i have a question:

    I use Json and NestedList to binding data for my Application

    Here is my json data:

        "items": [
                "id": 1,
                "text": "Fashion",
                "img_tmb": "resources/images/products/sominam.jpg",
                "leaf": true,
                "products": [
                        "id": 11,
                        "text": "Jean",
                        "weight": "120/25 grm",
                        "price": 27,
                        "img_tmb": "resources/images/products/jean.jpg",
                        "leaf": true
                        "id": 12,
                        "text": "kaki",
                        "weight": "100 grm",
                        "price": 34,
                        "img_tmb": "resources/images/products/kaki.jpg",
                        "leaf": true
                "id": 2,
                "text": "Food",
    That mean I just get products from Fashion and Food category.

    Now I want to put the Shop into database. It look like:

    Category(Cat_ID, Cat_name)
    Shop(Shop_ID, Shop_name, Cat_ID)
    Product(Pro_ID, Pro_name, Shop_ID, Cat_ID)

    I want to creat 2 tab panels call Category and Shop,
    if I click on Category, app will show the list of Category -> products.
    if I click on Shop panel, app will show the list of Shop -> products

    So how do I create database and binding data into my app

    Thanks and best regard.

    (Sorry for my English skill )

  2. #2
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Odessa, Ukraine
    Vote Rating


    Do not try to create complex app without core knowlege. You should dive into Sencha step by step.
    At first, learn how works stores in Sencha!/guide/stores

    Official documentation contains to many useful guides and examples.

    As example of shop application you can use demo app from this repository:

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Vote Rating

    Default JSON in sencha touch

    Hi, Well I am new to sencha touch and wants to use JSON in sencha touch .. Please kindly help me How I can use JSON in sencha touch
    Thanx in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts