You have some options....

labels=[db.mytable[f].label for f in db.mytable.fields]

you can do

form=SQLFORM(db.table)
labels = form.custom.labels.values()

On 5 Lug, 05:09, Frank <[email protected]> wrote:
> hi,
>
> I want to know if there is a easy way to get the list of labels of db.invoice,
>
> I know that we can do "db.invoice.fields" to get the list of field names,
>
> can I do the silmilar thing like "db.invoice.labels" or
> "db.invoice.field.labels" to get the list of labels?
>
> I try both but fail. please advise.
>
> Thanks,
>
> Frank  

Reply via email to