-
13 Dec 2011 9:27 AM #1
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
-
13 Dec 2011 10:49 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Can you post the code which has this problem so we can review it?
-
13 Dec 2011 1:21 PM #3
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
-
14 Dec 2011 9:33 AM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Thank you for the details, we'll look into it.
-
14 Dec 2011 11:38 AM #5
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.
-
14 Dec 2011 4:47 PM #6
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
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote