1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    76
    Vote Rating
    0
    jop_008 is on a distinguished road

      0  

    Default No output form trial looking for a combo select example

    No output form trial looking for a combo select example


    Hi,

    I am trying to build a form app with models and stores in arrays. Here also a problem the store arrays can not be read properly (see my other thread).
    I want the select boxes populated by the data columns of the array items (stored in store\..js files).
    I can not find a proper example to start with so I started with the following one:

    In my code (app.js) I have the following code:

    Ext.regModel('Contact', {
    fields: ['firstName', 'lastName']
    });


    var contactdata = [
    {firstName: 'Pearlie', lastName: 'White'},
    {firstName: 'John', lastName: 'Suttle'},
    {firstName: 'Javier', lastName: 'Henderson'},
    {firstName: 'Young', lastName: 'Alverd'},
    {firstName: 'Pearlie', lastName: 'white'},
    {firstName: 'Billy', lastName: 'Artega'},
    {firstName: 'Dona', lastName: 'Bigglker'},
    {firstName: 'Alfred', lastName: 'Blackburn'},
    {firstName: 'Trenton', lastName: 'Bollinger'},
    {firstName: 'Tom', lastName: 'Foose'}
    ];


    var store = new Ext.data.Store({
    model: 'Contact',
    data: contactdata
    });


    var itemTemplate = new Ext.XTemplate(
    '<tpl for=".">',
    '{firstName} {lastName}',
    '</tpl>'
    );


    var itemTemplate = new Ext.XTemplate(
    '<tpl for=".">',
    '<div style="color:#fff;background-color:#ff0000;">',
    '{firstName} {lastName}',
    '</div>',
    '</tpl>'
    );


    MyApp = new Ext.Application({
    name: 'TouchStart',
    fullscreen: true
    });


    var contactList = new Ext.List({
    store: store,
    itemTpl: itemTemplate,
    height:"100%"
    });


    new Ext.Panel({
    fullscreen:true,
    layout:'fit',
    dockedItems:[{xtype:'toolbar', title:'Contact List'}],
    dock:'top',
    scroll:'vertical',
    items:[contactList]
    });
    which does nothing only showing a blank screen without error msg.

    Thanks,
    John

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,798
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This looks like ST1 code, is it?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    76
    Vote Rating
    0
    jop_008 is on a distinguished road

      0  

    Default Solved

    Solved


    Hi,

    Combobox are not part of ST2 I am trying to switch to nestedlist view approach.

    John

Thread Participants: 1

Tags for this Thread

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