You found a bug! We've classified it as TOUCH-1264 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    266
    Vote Rating
    0
    nak1 is an unknown quantity at this point

      0  

    Default Ext.field.Select: multiple selectfield on one form

    Ext.field.Select: multiple selectfield on one form


    I've got a Ext.form.FormPanel with multiple selectfields rendering at once. What I've noticed is when I click to alter the options of any of the selectfields, only the options pop-up for the last selectfield that was created pops up. I'm not doing anything fancy, just rendering selects with "options" array hard coded.

    Any thoughts?
    No longer a Newbie

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Can you post the code which has this problem so we can review it?

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    266
    Vote Rating
    0
    nak1 is an unknown quantity at this point

      0  

    Default


    It's really just a fieldset with items. Not much to it.

    Code:
    {
    				xtype:'fieldset',
    				title:' Charge Entry',
    				instructions: 'Please complete the entire form in order to submit a charge',
    				
    				items:[{
                            xtype: 'selectfield',
    						name : 'owner_system_data_typeid',
                            label: 'Party',
                            options: [
    					        {text: 'Select Party',  value: 0},
    					        {text: 'Second Option', value: 'second'},
    					        {text: 'Third Option',  value: 'third'}
    					    ]
                        },{
                            xtype: 'selectfield',
    						name : 'owner_system_data',
                            label: 'Matter/Case',
                            options: [
    					        {text: 'Select Matter',  value: 0},
    					        {text: 'Second Option', value: 'second'},
    					        {text: 'Third Option',  value: 'third'}
    					    ]
                        },{
                            xtype: 'selectfield',
    						name : 'time_entry_typeid',
                            label: 'Entry Type',
                            options: [
    					        {text: 'Select Entry Type',  value: '0'},
    					        {text: 'Second Option', value: 'second'},
    					        {text: 'Third Option',  value: 'third'}
    					    ]
                        },{
    				        name : 'system_data_event',
    						label: 'Item/Code',
    						xtype: 'selectfield',
    					    options: [
    					        {text: 'Select Item/Code',  value: 0},
    					        {text: 'Second Option', value: 'second'},
    					        {text: 'Third Option',  value: 'third'}
    					    ]
    				    },{
    				        name : 'time_entry_dt',
    						xtype: 'datepickerfield',
    				        value: new Date(),
    						label: 'Date'
    				    },{
    				        name : 'start_time',
    						xtype: 'textfield',
    						label: 'Start Time'
    				    },{
    				        name : 'units',
    						xtype: 'numberfield',
    						label: 'Time/Units'
    				    },{
    						name: 'unit_multiplier',
    						label: 'Unit Type',
    						xtype: 'selectfield',
    					    options: [
    					        {text: 'Select Unit Type',  value: 0},
    					        {text: 'Second Option', value: 'second'},
    					        {text: 'Third Option',  value: 'third'}
    					    ]
    					},{
    						name: 'system_data_charge_durationid',
    						xtype: 'numberfield',
    						label: 'Rate'
    					},{
    				        text: 'Save',
    				        xtype: 'button',
    						disabled:true,
    				        handler: function() {
    							try {
    								
    				            }catch(e){
    								global.handleError(e);
    							}
    				        },
    						scope:this
    				    },{
    				        text: 'Reset',
    				        xtype: 'button',
    				        handler: function() {
    							try{
    								
    							}catch(e){
    								global.handleError(e);
    							}
    				            
    				        }
    				    }]
    				}
    No longer a Newbie

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the details, we'll look into it.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Are you using PR3? I cannot reproduce this with your code..
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  6. #6
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    266
    Vote Rating
    0
    nak1 is an unknown quantity at this point

      0  

    Default


    I turns out that it had to do with a Select I was rendering in a completely different process. Some how it was the other select objects in my application not to work properly. Thanks for looking into the issue, but tuns out it was on my end.
    No longer a Newbie

Thread Participants: 2