View Full Version : Create fieldset of checkboxes with Json data

ITS Telco
25 Jul 2011, 4:24 AM

I have a problem (of course).
I read JSONP data from the url with Ext.util.JSONP.request.
Then I put these data in a global variable.
Now I want create with these data a fieldset of checkboxes dynamically.
I am now in the situation to generate checkboxes with static data:

items: [{
xtype: 'fieldset',
title: 'Fieldset mit checkboxen',
items: [
xtype: 'checkboxfield',
name : 'firstName',
label: 'First Name'
xtype: 'checkboxfield',
name : 'lastName',
label: 'Last Name'

But how can I integrate the JSONP data to generate a fieldset of checkboxes ?
Can I only use the store parameter (I do not think so).
I would be very thankful about every help.
Thank you very much in advance.

best regards

ITS Telco
25 Jul 2011, 5:24 AM
Hello again,

I know of course the Ext.data.Store class,
but there I got the error
So it seems this is no solution and not worth to go in this direction.

best regards