PDA

View Full Version : Complex data sumission



ssamayoa
26 Nov 2010, 7:17 AM
Hi.

I'm returning to ExtJS after a few months spended on JSF/RichFaces/JPA project.

I want to to the folliwing:

I have a form which haves a master/detail entities (a invoice for example) and want to send all data (header and detail) in the same post.

I think what I want is a common scenario so instead of reinventing the weel please someone who already did that give me some example code or give me some guidance.

Thanks.

Regards.

Condor
26 Nov 2010, 7:49 AM
For form load I use the actioncomplete event to also fill the detail store with action.result.
For submit I use the beforeaction event to collect the data from the detail store and add it to action.options.params.

ssamayoa
26 Nov 2010, 7:53 AM
I will try it.
Thanks.