When you click on [add] it makes a create form. Do you want to replace the 
form with something else?

If you simply want to change the name of the table in the breadcrumbs you 
do:

db.define_table('t_meal_week_month',...., singular = 'Meal of the week', 
plural = 'Meals')



On Thursday, 3 December 2015 16:24:13 UTC-6, Ahmed Saidi wrote:
>
>
> Hi , 
>
> I m  new in web2py and im trying to understand why when I click on the add 
> button in the grid , it shows the t_meal_week form 
> How i can change this to show t_meal_week_month
>
> here is my code 
>
>         query = ((db.t_meal_week.id == db.t_meal_week_month.week_id )  & 
> (db.t_meal_week_month.month_id == request.vars.month_id ))
>         sqlform_grid=SQLFORM.grid(
>         query,
>         searchable=False,
>         formname='month_weeks_form',
>         )
>         return sqlform_grid
>
>
> thank you 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to