[FLOW3-general] arrays in a HTML <form> and Property Mapping

mario chiari m at mariochiari.net
Tue Nov 6 17:48:29 CET 2012


Hello

I made some progress. 
Now, I am able to insert (create, edit, update) as many objects as i
wish from the same form (by adding fields by a simple JS).

Please, give a look at http://pastebin.com/YNYaaMT4  (edited) and let me
know.
I don't think my code is as it should be yet, and your advise is still
welcome.

Thanks
Cheers
mario




On Wed, 2012-10-31 at 15:20 +0100, mario chiari wrote:
> Christian, All
> 
> thanks for your help.
> I made some progress. 
> I succeed to pass an array of objects by a single html form and echo
> them back. 
> 
> 
> Now, I want to do the same for a two models (Father, Son) package  such
> that a user may enter (Echo, Create, Edit), by a single html form, a
> number of fathers and, for each of them, a number of sons.
> Indeed, for a fixed number of fathers and sons (say two), I succeed to
> get something. 
> 
> But, I am not sure how to let the user to enter as many items as he wish
> (say by providing a simple java script to insert more input fields). 
> 
> Moreover, I do think my code is somehow 'wrong', and I appreciate any
> advise to write it as it should be written.
> 
> Please, give a look at http://pastebin.com/YNYaaMT4 and let me know.
> 
> Thanks a lot
> cheers
> mario
> 
...



More information about the FLOW3-general mailing list