Problems with linked combobox/superboxselect

  1. #1

    Problems with linked combobox/superboxselect

    Hello,

    I am having a problem with trying to link a combox select event to the reload of the remote data store in a SuperBoxSelect object. When I make a selection in the combobox, the complete list of store entries does not get updated.

    They are defined as follows:

       var ChonClassMultiSelect = new Ext.form.ComboBox({
          allowBlank:false,
          id:'chonClassMulti',
          xtype:'combo',
          fieldLabel: 'Chondrite Class',
          emptyText: 'Chondrite Class',
          resizable: true,
          minChars: 2,
          store:new Ext.data.JsonStore({
              url:'/getChonClass/',
              autoLoad:true,
              baseParams:{cmd:'getChonClass'},
              root:'chonclass_records',
              fields:['chon_class','class_name']  
          }),
          mode: 'remote',
          displayField: 'class_name',
          displayFieldTpl: '{class_name}',
          valueField: 'chon_class',
          selectOnFocus: true,
          width:170,
           listeners: {
             'select':{ fn:function(combo,value) {
            //Ext.Msg.alert('Chon Class select event fired!');
            chonGroupCbx=Ext.getCmp('chonGroupMulti');
            chonGroupCbx.clearValue();
            chonGroupCbx.store.filter('chon_class', combo.getValue());
            //chonGroupCbx.store.load({params:{'chon_class':this.value}}); //can use multiple params if you want to change filter field
            chonGroupCbx.setVisible(true);
             }
             }
           },
          hidden:true,
          disabled:true,
          hideLabel:true,
          listWidth: 'auto',
          queryDelay: 0,
          triggerAction: 'all'  
        });
     
        var ChonGroupMultiSelect = new Ext.ux.form.SuperBoxSelect({
          allowBlank:false,
          id:'chonGroupMulti',
          xtype:'superboxselect',
          fieldLabel: 'Chondrite Group',
          store: new Ext.data.JsonStore({
              url:'/getChonGroups/',
              autoLoad:true,
              baseParams:{cmd:'getChonGroups'},
              root:'chongroup_records',
              fields:['chon_group','groupname']  
           }),
          emptyText: 'Chondrite Group',
          resizable: true,
          minChars: 2,
          mode: 'remote',
          displayField: 'groupname',
          displayFieldTpl: '{groupname}',
          valueField: 'chon_group',
          hidden:true,
          hideLabel:true,
          listWidth: 'auto',
          queryDelay: 0,
          lastQuery:'',
          triggerAction: 'all'  
        });
    The filter 'chon_class' used in the server side function that returns JSON is clearly referenced as request.POST['chon_class'] , and works well when I make the function request using GET parameters instead.

    Any insight would be appreciated,

    Bill
    Last edited by geoffrey.mcgill; Feb 26, 2011 at 12:33 AM. Reason: please use [CODE] tags

Similar Threads

  1. [CLOSED] Linked Combobox can't work
    By gs_user in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 02, 2012, 7:26 AM
  2. [CLOSED] SuperBoxSelect and ext.NET
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 16, 2011, 8:09 AM
  3. ajax linked combobox
    By studentdev in forum 1.x Help
    Replies: 1
    Last Post: Feb 05, 2010, 5:03 AM
  4. Problem With Ajax Linked ComboBox
    By sachin.munot in forum 1.x Help
    Replies: 11
    Last Post: Sep 10, 2009, 5:22 PM
  5. Linked ComboBox
    By gargamel4670 in forum 1.x Help
    Replies: 3
    Last Post: Mar 05, 2009, 3:29 PM

Posting Permissions