Threaded View

  1. #1
    Sencha User davisty's Avatar
    Join Date
    Mar 2010
    Location
    Spanish Fort, Al
    Posts
    270
    Answers
    11
    Vote Rating
    1
    davisty is on a distinguished road

      0  

    Default Answered: Question building carousel from store

    Answered: Question building carousel from store


    Hello,

    Im trying to build a carousel from my data store into a series of text fields to be displayed on each page.

    Im able to load my store into the array. The problem Im having is that each set of text fields is being displayed on a separate page.

    I have this ... But each textfield set is a different page. I need each iteration to appear on a separate page. Does anyone have any ideas. Thank You in advance. And yes I know we lost this past week end .. ...

    Code:
    comStore.on('load', function() {   
     var x = 0;                                              
     comStore.each(function(record) {            
     comItems.push([                             
       {                               
     xtype: 'textfield',           
     name : 'SCPKTP' + x,          
      id   : 'SCPKTP' + x,          
     value:  record.data.MIPKTP,   
      label: 'Package Type',        
       useClearIcon: true            
        },{                             
       xtype: 'textfield',                 
       name : 'MINPKS' + x,                
       id   : 'SCNPKS' + x,                
       value:  record.data.MINPKS,         
       label: 'No. Pks',                   
       useClearIcon: true                  
     },{                                   
       xtype: 'textfield',                 
       name : 'SCTKWT' + x,                
       id   : 'SCTKWT' + x,                
       value:  record.data.MITKWT,         
       label: 'Item Kilos',                
       useClearIcon: true                  
     },{                                   
        xtype: 'textfield',                     
        name : 'SCTCBM' + x,                    
        id   : 'SCTCBM' + x,                    
        value:  record.data.MITCBM,             
        label: 'Item Cubic Measure',            
        useClearIcon: true                      
      },{                                       
        xtype: 'textfield',                     
        name : 'SCTPWT' + x,                    
        id   : 'SCTPWT' + x,                    
        value:  record.data.MITPWT,             
        label: 'Item Weight LBS',               
        useClearIcon: true

  2. I needed to add to the array.push

    new Ext.Panel({
    title : 'Commodity' + x,
    standardSubmit : false,
    id: 'comPanel' + x,
    items: [
    ...
    ]
    })





    ...

    ]