Hi!

After the previous post asking for help, I was thinking: just an example of an Ext.form.FormPanel descendant with a JSONReader would be enough.
Because most of the XMLReader and JSONReader examples create new Ext.form.FormPanel but none of them create descendants like:


Code:
DossierPanel = Ext.extend(Ext.form.FormPanel, {
    closable: true,
    autoScroll:true,

        // configure how to read the XML Data
        this.reader = new Ext.data.XmlReader({
            record : 'contact',
            success: '@success'
        }, [
            {name: 'first', mapping:'name/first'}, // custom mapping
            {name: 'last', mapping:'name/last'},
            'company', 'email', 'state',
            {name: 'dob', type:'date', dateFormat:'m/d/Y'} // custom data types
        ]);
        this.items= [
            new Ext.form.FieldSet({
                title: 'Contact Information',
                autoHeight: true,
                defaultType: 'textfield',
                items: [{
                        fieldLabel: 'First Name',
                        emptyText: 'First Name',
                        name: 'first',
                        width:190
                    },.... {
                        fieldLabel: 'Email',
                        name: 'email',
                        vtype:'email',
                        width:190
                    },
                    new Ext.form.DateField({
                        fieldLabel: 'Date of Birth',
                        name: 'dob',
                        width:190,
                        allowBlank:false
                    })
                ]
            })
        ];
        DossierPanel.superclass.initComponent.call(this);
    }
});
I've tried to look everywhere but I found nothing that could really help me.
Any idea?

Thanks a lot