one way -
you could add "id" to the itemselector "field" -
PHP Code:
xtype : 'itemselector',
id : 'xxxxx-selector',
.
.
.
then (in controller or handler ) -
PHP Code:
myupdatefunction: function() {
values = Ext.getCmp ('xxxxx-selector').getValue ();
// -- will be csv String of selected values (from valueField)
What would you like to do next with the values?
I wanted to send to backend -
(there is probably a better way to do this...)
PHP Code:
// ... (manually creating url params for ajax call) --
myString = '?keyId=' + keyId;
myString = myString + '&valueIDs=' + values.join ('&valueIDs=');
// console.debug ('myString:: ' + myString);
Ext.Ajax.request ({
url : '../abc/xyz/add' + myString,
.
.
.