HI,

I have a 'category' table:

db.define_table('category',
                Field('name',label=T('Name')),
                signature,
                format='%(name)s'
                )

which I defined a label for the field 'name'

I need to create something like:

list = plugin_datatable(db(db.category.id>0).select(db.category.id,
db.category.name),
                            _class='datatable',
                            headers = {'category.name':T('Name')},
                            )

Is there a way to pass my previously defined labels to the SQLTABLE?

where the 'labels' are stored? I tried db.category.labels,
db.category['labels'] ?

Thanks

-- 

Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to