Results 1 to 2 of 2

Thread: How to display nested Json data in different row in listview page in sencha touch-2.4

  1. #1
    Sencha User
    Join Date
    Feb 2015
    Posts
    0

    Default How to display nested Json data in different row in listview page in sencha touch-2.4


    My output in view is like below

    Campaigns,Quotes,PurchaseOrder,SalesOrder,Calendar,Leads,Accounts
    But I want line by line like below

    Campaigns Quotes PurchaseOrder SalesOrder Calendar Leads AccountsMy JSON file

    {"success":true,"result":{"types": ["Campaigns","Quotes","PurchaseOrder","SalesOrder","Calendar","Leads","Accounts] }}My Model

    fields: [{name: 'success', type: 'boolean'},{name: 'types', type:'auto', mapping:'result.types'}],My Itemtpl

    itemTpl: '<tpl>{types}</tpl>',My Store Ext.define('app1.store.mainmenustore',
    { extend: 'Ext.data.Store',
    requires:[ 'Ext.data.proxy.SessionStorage','Ext.data.proxy.Ajax'],
    config: {
    model : 'app1.model.mainmenumodel',

    proxy:{type:'ajax',url:'http://192.168.50.118/crm/webservice.php? sessionName=sessionId&operation=listtypes',reader:{type:'json'},extraParams:{sessionName: sessionStorage.getItem('sessionid')},});

  2. #2
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    388
    Answers
    13

    Default

    I believe the following fiddle may guide you in your direction :

    https://fiddle.sencha.com/#fiddle/j98

    Regards,

    Kevin
    Sencha Support Team

Tags for this Thread

Posting Permissions

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