Quote from: markh at Nov 26, 2012, 09:20 AMWhy don't you do the matching in your mgr/subscribers/getList processor?
You didn't post the actual code for it, but it seems that you are already fetching the "extended" field (which is an array) so you have the data for it available. It's $user->Profile->get('extended'). Then do whatever matching you need to do against that data.. I'm not sure what your data model is for storing it.. if (test2 == ID of checkbox)?
Hi Mark thanks for jumping in,
doing the matching in the mgr/subscribers/getList processor was my initial intention (you can see this a few post above).
I have the data available in GoodNews.window.UpdateSubscriber but I absolutely don't know how to pass this value to the catCheckboxGroup function (line 34 of the source below) which handles the JsonStore. I'm a JavaScript noob - you must know.

How can I access the value of the field "extended" in GoodNews.window.UpdateSubscriber (see source below)?
Here is the source (a part of it) once again:
...
GoodNews.window.UpdateSubscriber = function(config) {
config = config || {};
console.log(this);
Ext.applyIf(config,{
title: _('goodnews.subscriber_update')
,url: GoodNews.config.connectorUrl
,baseParams: {
action: 'mgr/subscribers/update'
}
,fields: [{
xtype: 'hidden'
,name: 'id'
},{
xtype: 'displayfield'
,fieldLabel: 'extended field'
,name: 'extended'
,readOnly: true
},{
xtype: 'displayfield'
,fieldLabel: _('goodnews.subscriber_username')
,name: 'username'
,readOnly: true
},{
id: 'cat-ext-checkboxgroup'
,fieldLabel: _('goodnews.subscriber_categories')
,name: 'newslettercategories'
,listeners: {
'render': {
fn: function() {
catCheckboxGroup('cat-ext-checkboxgroup','newslettercategories');
}
}
}
}]
});
GoodNews.window.UpdateSubscriber.superclass.constructor.call(this,config);
};
Ext.extend(GoodNews.window.UpdateSubscriber,MODx.Window);
Ext.reg('goodnews-window-subscriber-update',GoodNews.window.UpdateSubscriber);
...