Quote Originally Posted by gacowarlock View Post
I have a problem SuperBoxSelect and pre-selected entries:

When I set to local and manually load my store, then the available entries get displayed.
When I set to remote, then I get a not ending number of server requests but get the pre-selected entries correctly. In this mode, it's not possible to see the list of available entries...
What am I doing wrong?
I have the same exact issue.
This is my code:
Code:
this.superBoxApplicant = new Ext.ux.form.SuperBoxSelect({
            name: 'applicant',
            width: 300,
            fieldLabel: this.lang('superBoxApplicant', 'fieldLabel'),
            emptyText: this.lang('superBoxApplicant', 'emptyText'),
            listEmptyText: this.conf.wrapErrorStart + this.lang('superBoxApplicant', 'empty') + this.conf.wrapErrorEnd,
            resizable: true,
            valueField: 'id',
            displayField: 'party_name',
            store: this.partyStore,
            triggerAction:'all',
            mode:'remote',
            anchor:'100%',
            queryDelay: 0,
            minChars: 2

        });
the JSON returned by the store is something like:
Code:
{"success":true,"message":"List loaded correctly","total":25,"data":[{"id":"12","party_name":"Abbott"},{"id":"11","party_name":"Bayer"}...]
I noticed that if I change the displayField to whatever (like 'asd' or something not present in the json response) the list is actually built and I can count 25 entries, of course without any label. When I change back to 'party_name' or even 'id', it acts like the post above..

any suggestion? I already looked at the code of the technomedia.co.uk examples and I think the issue is on the JSON response...

Thanks for the help!

LR