Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    11
    Vote Rating
    0
    avivenna is on a distinguished road

      0  

    Default Array to ArrayStore

    Array to ArrayStore


    Hello,

    I was trying to populate ArrayStore by using an Array. The Array structure as follows

    arr[1]['field1'] = 123,
    arr[1]['field2']= 456,
    arr[1]['field3']= 'name'

    I want field1, field2, field3 vales in ArrayStore. It seems like a silly one but still I am unable to achieve it. any ideas please? Thanks for looking into the thread. Comments Appreciated

    Thanks,
    Avi

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Location
    chennai,tamilnadu
    Posts
    19
    Vote Rating
    -3
    vijayasarathi can only hope to improve

      0  

    Default


    follow the following array store structure :


    [
    {'fname':arr[1][field1],'fname':arr[1][field2],...},
    {'fname':arr[2][field1],'fname':arr[2][field2],...},
    {'fname':arr[3][field1],'fname':arr[3][field2],...},
    {'fname':arr[4][field1],'fname':arr[4][field2],...},


    ]

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    chennai,tamilnadu
    Posts
    19
    Vote Rating
    -3
    vijayasarathi can only hope to improve

      0  

    Default


    try this one..........


    var
    store =Ext.create('Ext.data.ArrayStore',{// store configs storeId:'myStore',// reader configs fields:['company',{name:'price', type:'float'},{name:'change', type:'float'},{name:'pctChange', type:'float'},{name:'lastChange', type:'date', dateFormat:'n/j h:ia'}]});

    so here you add your code ............

    var myData =[

    ['price':arr[1][field1],'change':arr[1][field2],'pctChange':arr[1][field3],'lastChange':arr[1][field4],...],

    ['price':arr[2][field1],'change':arr[2][field2],'pctChange':arr[2][field3],'lastChange':arr[2][field4],...],
    ['price':arr[3][field1],'change':arr[3][field2],'pctChange':arr[3][field1],'lastChange':arr[3][field2],...]


    ]];

Thread Participants: 1