Results 1 to 3 of 3

Thread: Combobox showing blank list

  1. #1
    Sencha User
    Join Date
    Sep 2017
    Posts
    20
    Answers
    3

    Default Answered: Combobox showing blank list

    Hey guys I'm not sure why my combobox is showing a blank list


    Code:
    Ext.define('Archivo.view.ingreso.winIngresarRegistro', {
        extend: 'Ext.window.Window',
        alias: 'widget.ingreso.winingresarregistro',
    
    
        requires: [
            'Archivo.view.consulta.winIngresarRegistroViewModel',
            'Archivo.view.consulta.winIngresarIngresoViewController',
            'Ext.form.Panel',
            'Ext.form.field.ComboBox',
            'Ext.form.field.Date',
            'Ext.form.field.Number',
            'Ext.button.Button'
        ],
    
    
        controller: 'ingreso.winingresarregistro',
        viewModel: {
            type: 'ingreso.winingresarregistro'
        },
        modal: true,
        height: 310,
        id: 'winIngresarUnidad1',
        resizable: false,
        width: 476,
        title: 'Ingresar nuevo Registro',
    
    
        layout: {
            type: 'vbox',
            align: 'center'
        },
        items: [
            {
                xtype: 'form',
                height: 267,
                id: 'FormaIngresarRegistro',
                width: 314,
                bodyPadding: 10,
                layout: {
                    type: 'vbox',
                    align: 'center',
                    pack: 'center'
                },
                items: [
                    {
                        xtype: 'combobox',
                        flex: 1,
                        margins: '',
                        height: 33,
                        margin: 10,
                        maxHeight: 33,
                        fieldLabel: 'Unidad',
                        name: 'COUNIDAD',
                        editable: false,
                        forceSelection: true,
                        store: 'consulta.UnidadStore',
                        valueField: 'UNNOMBRE'
                    },
                    {
                        xtype: 'datefield',
                        flex: 1,
                        margin: 10,
                        fieldLabel: 'Entrega',
                        name: 'ENFECHAE'
                    },
                    {
                        xtype: 'datefield',
                        flex: 1,
                        margin: 10,
                        fieldLabel: 'Ingreso',
                        name: 'ENFECHAI'
                    },
                    {
                        xtype: 'numberfield',
                        flex: 1,
                        margin: 10,
                        fieldLabel: 'No. cajas',
                        name: 'ENCAJAS'
                    },
                    {
                        xtype: 'button',
                        margins: '',
                        margin: 10,
                        width: 150,
                        text: 'Aceptar',
                        listeners: {
                            click: 'onButtonClick'
                        }
                    }
                ]
            }
        ]
    
    
    });
    Any ideas?

  2. Hi there,
    No displayField declared for the combo?
    You should also post the model & store code for the combo, the example is not complete right now.

  3. #2
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    64
    Answers
    5

    Default

    Hi there,
    No displayField declared for the combo?
    You should also post the model & store code for the combo, the example is not complete right now.

  4. #3
    Sencha User
    Join Date
    Sep 2017
    Posts
    20
    Answers
    3

    Default

    Quote Originally Posted by vmihaylov View Post
    Hi there,
    No displayField declared for the combo?
    You should also post the model & store code for the combo, the example is not complete right now.
    Yes, I already made the combobox work with the displayField property; thank you very much;

    I'll post the model and the store the next time I need help;


Similar Threads

  1. Replies: 2
    Last Post: 4 Aug 2014, 6:45 PM
  2. ComboBox List Options Not showing
    By FroBobbo in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 25 Sep 2008, 10:26 PM
  3. Combobox list items not showing in Firefox
    By sudo in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Apr 2008, 8:05 AM

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
  •