PDA

View Full Version : Multiple form attributum send



makgubo
7 May 2010, 7:21 AM
Hi,

I have got a probleme, i hope somebody can help me a little.

So, I have got a tabpanel, with four tabs and four forms.

I want to post the 4 forms values together to one url.




var form = Ext.getCmp('datas').getForm();

form.submit(
{

url: Config.baseUrl+'/sample/updatesave.do',
params: {
is_submit: true
},
success: function(form,res) {
this.hide();
this.destroy();

},
scope: this
}
)


How can i modify this code to able to send 4 forms at the same time.

Thanx.

Animal
7 May 2010, 7:24 AM
Encapsulate the TabPanel in a FormPanel. Use layout:form Containers as the individual tabs.

Submit the outer FormPanel.