PDA

View Full Version : How to use Store to load the default values of fields in a form



arnolem
30 Nov 2009, 2:33 AM
Hello,

I have create a SimpleStore with PHP :


var defaultValues = new Ext.data.SimpleStore({
fields: ["value", "name"],
data: <?php echo json_encode($defaultValues); ?>
});


I have a formPanel and I want to load the defaultValues store.
Can you help me please ?