PDA

View Full Version : itemselector



bhavana
9 Aug 2013, 1:17 AM
I have combo-box, based on its value, itemselector.sholud be populated.
How to populate the selected value

{
fieldLabel: '<B>GAM Definition</B>',
allowBlank: true,
multiSelect:false,
xtype: 'combobox',
id:'add_gam_def_id',
name: 'gam_def_id',
typeAhead: true,
triggerAction: 'all',
selectOnTab: true,
displayField:'value',
editable: false,
valueField:'id',
hiddenName:'id',
store: gam_def_store,
lazyRender: true,
listClass: 'x-combo-list-small',
listConfig: { loadMask: false },
listeners: {
select:function(combo, value)
{
var comboModule = Ext.getCmp('psa_id');
comboModule.setDisabled(true);
comboModule.setValue('');
psa_store.load({
params: { gam_def_id: combo.getValue() }
});
comboModule.setDisabled(false);
}
}
},{
xtype: 'itemselector',
name: 'psa_id',
id:'psa_id',
store: all_psa_store,
displayField: 'refrence',
valueField: 'mspa_id',
value: psa_store,
allowBlank: true,
msgTarget: 'side',
toTitle: 'GAM Selected',
fromTitle: 'GAM Available'
,
flex: 0.5
}

Gary Schlosberg
9 Aug 2013, 5:49 AM
Did you find your answer on this (http://www.sencha.com/forum/showthread.php?263812) thread or is this still an issue?
http://www.sencha.com/forum/showthread.php?263812

bhavana
11 Aug 2013, 7:38 PM
Yes @Gary Schlosberg (http://www.sencha.com/forum/member.php?556932-Gary-Schlosberg) it was addressed and its sloved.