PDA

View Full Version : Form.submit on all tabs



LeonM
29 Jun 2010, 6:45 AM
Hi,

I've got a FormPanel using multiple tabs. It uses a JSON reader to fill in the data, which works just fine. However, when submitting the form, ext-js only submits the values of the tabs the user has viewed.

For example:

[tab1]
[name]
[age]
[tab2]
[street]
[city]

If the user submits before he viewed tab2, extjs only sends [name] and [age]. When the user does view tab2 and then submits, ext-js sends [name],[age],[street] and [city].

This method is not desired, since it would require conditional queries to write the data to the DB.

How do I solve this? I want to store all fields upon submit, not just the ones the users has viewed.


P.S. I'm sorry if this question has already been asked here before, I did try the search, but I have honestly no idea what to search for...

LeonM
29 Jun 2010, 7:35 AM
Solved it, by setting



deferredRender: false


In the tabpanel proporties.