>
> I think I've gotten the model down now correctly. Would you have any 
> advice with the controller and views ? I know the way I'm doing it now with 
> a nested for loop and counter probably isn't the best way. Maybe there is a 
> much better way to do this instead of defining the edit and delete form in 
> the view?


Not sure -- haven't studied the view code in detail to figure what you're 
trying to do, and you haven't shown the full controller code. In general, 
if you just want to be able to show a list of all records in a given table 
and allow creating and updating of records, either Crud or SQLFORM.grid are 
the way to go.
 

>
> Anyway, If I understand correctly, to create an edit form you simply pass 
> a record to the sqlform "SQLFORM(db, record)"
>

Yes.

Anthony

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to