Hello ChrisT,

it is possible but I am not sure I have seen a recipe posted for this.
I will try write one next week and post it, perhaps sooner.

Massimo



On Mar 4, 3:30 am, ChrisT <christostopou...@gmail.com> wrote:
> Hello everyone,
>
> I am in the process of evaluating web2py and django to decide which
> one I am going to use for a project of mine.
> I am new to both frameworks and web frameworks in general (although I
> did experiment with Ruby on Rails a while back)
> I must say I am learning web2py much faster than Django which has a
> much steeper learning curve I think.
> For the past few days however I am trying to figure out the best way
> to do a (relatively) simple thing with both frameworks that I guess
> many people did before me.
> I wanted to have multiple forms grouped as one on a sigle page and a
> jquery plugin allowing clients to add and remove forms on the client-
> side.
> This would be very useful in many situations in my application.
> One example would be:
>    * Creating an invoice (table invoice with fields such as
> reference_no , issue_date, customer_name, etc.) with multiple invoice
> lines (table invoice_line with fields such as description, amount,
> etc.)
> So I need to create a single form for the invoice creation and the
> client must be able to add or remove from the form as many
> invoice_lines as needed each time.
> The fact is that I was able to figure the best way to do it in Django
> would be using 
> formsets:http://docs.djangoproject.com/en/dev/topics/forms/formsets/
> and this:http://code.google.com/p/django-dynamic-formset/jQuery
> pluging
> I am troubled I didn't find anything similar implemented in web2py, I
> am sure many people before me did the same thing using both
> frameworks. I found some pieces of code here and there that enabled me
> to come close to doing it using web2py but I consider my efforts a
> hack (and an incomplete one so far :-))
> I would like to know your opinions on how this should be done in
> web2py or how someone already did this.
> Please forgive my ignorance if I am missing the obvious here as I am
> new to all this. In fact this is my first post so go easy on me...
>
> Regards,
> ChrisT

Reply via email to