there is no id_label.

You can do

        form=SQLFORM(db2[table],records[0],fields=flds,\
                      submit_button='Salva',labels={'id':'N.'})

or

        db2[table].id.label='N.'
        form=SQLFORM(db2[table],records[0],fields=flds,\
                      submit_button='Salva')




On May 12, 10:37 am, carlo <[email protected]> wrote:
> Is the id_label parameter working?
>  I have:
>
> table=request.vars.table
> if len(request.args)>1:
>         flds=[v for v in request.args[1:]]
>
>         records=db2(db2[table].id==request.args[0]).select()
>
>         form=SQLFORM(db2[table],records[0],fields=flds,\
>                      submit_button='Salva',id_label='N.')
>
> I get everything correct except for the id_label which stays 'id'
>
> Something wrong in my syntax?
>
> carlo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to