PDA

View Full Version : Forms Per Tab



RedMoomba
20 Jul 2009, 10:28 AM
I have a client that has is using ExtJS and they have a Tab Control that every tab has it's own form. They originally had a save button on each form and everything worked ok. There is a link on the screen outside of the tab control and if you click it they want to save all Forms. Which is 6 one per tab. There back end code is breaking because the fields on the inActive Tabs/Forms isn't going across.

Could someone share some advice on how to do this? BestPractice and so forth?

Thanks you,
RedMoomba

tryanDLS
20 Jul 2009, 11:10 AM
If the tab has deferredRender:true and you haven't visited all the tabs, then the form fields on them haven't been rendered and there is nothing to submit. If this is case, you could set deferredRender to false, but then potentially you'd have a performance issue as you be rendering potentially unused tabs up front. Kind of depends on your app as to whether you make the back end smarter, take the potential performance hit of deferredRender:false, or investigate changing the submit behavior to submit all fields.

RedMoomba
23 Jul 2009, 6:57 AM
Thanks, tryanDLS

I changed it to be one submit form for the Tabset and it works fine now thanks.

Redmoomba