1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    50
    Vote Rating
    0
    reminder is on a distinguished road

      0  

    Default sencha touch list store problem

    sencha touch list store problem


    hello!

    i used this new sintax for list store
    Code:
            var groupingBase = {
                tpl: '<tpl for="."><div class="groups"><strong>{group_name}</strong></div></tpl>',
                itemSelector: 'div.groups',
                singleSelect: true,
                id: "vehicle_group_list",
                grouped: false,
                indexBar: false,
                store: new Ext.data.Store({
                    autoLoad: true,
                    url: 'get_groups.php',
                    storeId: 'store_get_groups',
                    id: 'threadid',
                    model: 'group_list',
                    proxy: {
                           type: 'ajax',
                           reader: {
                                   type: 'json',
                                   root: 'itms',
                                   totalProperty: 'totalCount'
                           }
                    }
                })
            };
    i use it on opera mobile emulator and the dragonfly debugger give me this error:
    Code:
    Error:
    name: TypeError
    message: Statement on line 6: Type mismatch (usually non-object value supplied where object required)
    stacktrace: n/a; see  opera:config#UserPrefs|Exceptions Have Stacktrace
    any help or suggestion on how to solve this is appreciated.
    thanx in advance...

  2. #2
    Sencha User
    Join Date
    Mar 2008
    Posts
    50
    Vote Rating
    0
    reminder is on a distinguished road

      0  

    Default


    solved in another way with this workaround while the next release comes out...
    Code:
    function jsonStoreRequest(url, fn) {
             Ext.Ajax.request({
                    url: url,
                    success: function(response, opts) {
                        fn(eval(response.responseText));
                    }
             });
    }
    where u define the function to construct the data.Store object for the simple list population....

    thx anyway...regards

Similar Threads

  1. Debugging Sencha Touch
    By profunctional in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 31 Jan 2012, 1:20 AM
  2. Sencha Touch/EXT JS newbie
    By gwthompson in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 13 Sep 2011, 10:38 PM
  3. Features of Sencha Touch
    By metalsiren in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 21 Jul 2010, 8:02 AM
  4. Sencha Touch - DZone Article
    By mystix in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 18 Jun 2010, 2:21 PM
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi