I thougth about something like that, keep adding row and submit row with
ajax...

Richard


On Fri, Mar 22, 2013 at 3:32 PM, Derek <[email protected]> wrote:

> Why don't you just have a webpage, have the display of current values on
> top, a single form below for adding items, and submit as you go?
>
>
> On Thursday, March 21, 2013 9:14:05 AM UTC-7, Richard wrote:
>>
>> Hello,
>>
>> I have a bizzard case where I need to set the number of input (more
>> number of rows to be insert then inputs to be more precise) of a form... I
>> create a bulk insert form that will insert many record at the same time
>> but, if there is empty rows form will never submit since there is field in
>> the row that can't be empty... So I need to let the user determine the
>> number of input he needs... For more flexibility I would prefer the user to
>> be allow to change the number of inputs (rows) while he is filling the form
>> since he may have made a mistake in evaluation of the number of row he were
>> needing if I only let him set this parameters before the form is
>> generated...
>>
>> One solution is to create a factory form with one field number_of_inputs
>> that could auto-submit once the number of inputs is select by a dropbox,
>> then the page reload and I can force the regeneration of the seconde
>> embeded form in the page to consider the new number_of_inputs parameters
>> before redraw the form... With this approach I need to keep values that are
>> already entered, but the second form should not be submitted since it is
>> not completed and because of that I need a custom keep values feature that
>> doesn't required the second form to be submit...
>>
>> Other solution, could be to embed the number_of_inputs into a unique form
>> and parse only the first inputs until the max number of rows allowed by the
>> number_of_inputs value... Not very possible without customizing
>> form.accepts() I guess...
>>
>> Richard
>>
>>
>>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to