I have a combobox with static values (0,1,2). For '2', I want to switch between 2 sets of components to display. The first set I have the DateTime field from here. The second is just a textfield. I want to do this in a generic method that doesn't reference the objects by an ID or assume there's (n) components available. For structure, do I include all components, just hidden:true then show()/hide() on my change listener? Also, when I try to query name!= I get what I was NOT looking for. See below.


Code:
    cbo.addListener('change', function () {
        var fs = this.up('fieldset'); //works
        var dates = fs.query('datefield'); //works
        var cbos = fs.query('combo[name!='+cbo.name+']'); //Gives me my original combo???
    });