PDA

View Full Version : ExtJS 3.4 - Submit FormPanel with Grid informations



chris86
15 Oct 2015, 5:17 AM
Hello Community

I have a FormPanel and in the formpanel there is an Grid with a Checkbox-Column.

After the selection of some Rows, i want to submit the hole panel with the informations of the grid.

I do the submit with by pressing a button with the follow code:

mergeCaseForm.getForm().submit({

But the information of the gird would not be submitted.

It's that possible to submit the grid information?

Thanks and Regards,
Chris

joel.watson
16 Oct 2015, 8:09 AM
Hi--

Before submitting, you could retrieve the data from the grid's store and then add the data as params in the submit:

http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.form.Action.Submit-cfg-params

Thanks!
Joel

chris86
19 Oct 2015, 8:54 AM
Hey...

Thanks for you reply.

But how can i submit the store with params?

I tried it as follow:


mergeCaseForm.getForm().submit({
params: {
data: Ext.getCmp('searchIdenticallyCasesGrid').store.data.items
},


success:

Regards.
Chris