HI All, Identify directories or databases for US based :: How about try this for your first test list: develop 50 companies per target industries- Brands: Second Sun, Sante Fe Seasons, Coyote Cocina. Natural Value - 14 Waterthrush Ct., Sacramento, CA 95831, Brands: Chloro-Combo, Chloro-Greens, Baby-Vite, Liqui-Vite, Ultra-B Liquid, http://answers.google.com/answers/threadview?id=106867HOME |
I have two combo boxes on my form. I need to populate second combo box based on selected item of first combo box value.
Below is my code.
Code for getting values for combo
// For device category
this.LookupRecordCategory = Ext.data.Record.create([
{name: 'devicecategory_id'},
{name: 'devicecategory_name'}
]);
//Store for combo box of device category
this.devicecategorycombo = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: this.url})
,baseParams:{mode:'getDeviceCategory', objName:"devicecategory",sort:"devicecategory_name"}
,reader: new Ext.data.JsonReader({
id:'devicecategory_id',
root:'rows',
totalProperty:'totalCount'
},this.LookupRecordCategory)
});
// For device type
this.LookupRecordType = Ext.data.Record.create([
{name: 'devicetype_id'},
{name: 'devicecategory_id'}, EXCEL - Combo Box functionality:: Combo Box functionality. I want the user to select from a list of choices Hi jimelliott, Try this: Make your Combo Box as in your first explanation. ordinal number property to work based on the user's selected item. to the cell where you want the selected value (ordinal) to be displayed. http://answers.google.com/answers/threadview?id=518310HOME | SQL Query that checks for multiple values in a list:: none that have a combo of those numbers and/or other numbers. . You would like results from a table based on whether one or more delimited values in a My second SELECT statement remedies this issue by performing a Value + ',%') tests whether the value matches the first value in the http://answers.google.com/answers/threadview?id=330983HOME |
{name: 'devicetype_name'}
]);
//Store for combo box of device category
this.devicetypecombo = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: this.url})
,baseParams:{mode:'getDeviceType', objName:"devicetype",sort:"devicetype_name"}
,reader: new Ext.data.JsonReader({
id:'devicetype_id',
root:'rows',
totalProperty:'totalCount'
},this.LookupRecordType)
});
Below code is for Form combo boxes
,items:[{
x: 2,
y: 10,
xtype: 'label',
text: 'Device Category:'
},{
x:125,
y:7,
xtype:'combo',
store: this.devicecategorycombo,
displayField:'devicecategory_name',
valueField:'devicecategory_id',
name:'devicecategory_id',
typeAhead: true,
mode: 'remote',
emptyText: 'Select Device Category',
triggerAction: 'all',
editable:false,
selectOnFocus:true,
anchor: '26%',
allowBlank:false,
id:'devicecategory_id',
listeners:{select:{fn:function(combo, value){
var comboType = Ext.getCmp('devicetype_id');
comboType.clearValue();
//alert(combo.getValue());
comboType.store.filter('devicecategory_id', combo.getValue());
}}}
},{
x: 2,
y: 38,
xtype: 'label',
text: 'Device Type:'
},{
x:125,
y:35,
xtype:'combo',
store: this.devicetypecombo,
displayField:'devicetype_name',
valueField:'devicetype_id',
name:'devicetype_id',
typeAhead: true,
mode: 'remote',
emptyText: 'Select Device Type',
triggerAction: 'all',
editable:false,
selectOnFocus:true,
anchor: '26%',
//allowBlank:false,
id:'devicetype_id'
}
Also based on second combo box selection third should be fill up. And I do not want to load second and third combo boxes on the load of form. I need those combo to populate only when user select value from first.
Also If I keep devicecategory_id of first combo as a valueField in second then in DB it will going to store that devicecategory_id value in place of devicetype_id. It is totally wrong.
Please help.
Hiral
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|