Greetings,
I'm using web2py Version 2.3.2 (2012-12-17 15:03:30) stable
and I'm trying to use SQLTABLE extracolumn but It does not work.

To simplify testing I tried it on db.auth_user.

def index():
    extracolums = [{'label':A('Extra',_href='#'),
                    'class': '', #class name of the header
                    'width':'', #width in pixels or %
                    'content':lambda row, rc: A('Edit',_href='edit/%s'%row.
id),
                    'selected': False #agregate class selected to this 
column
                    }]
                    
    table = SQLTABLE(db(db.auth_user).select(), extracolums=extracolums)
    return dict(table=table)


but the result table only shows the columns:

auth_user.id, auth_user.first_name, auth_user.last_name, auth_user.email, 
auth_user.password, auth_user.registration_key, 
auth_user.reset_password_key, auth_user.registration_id


I tried various combinations of 'label' (with or without A), 'class' 
(commented, empty string, "string") and 'width' (commented, empty string, 
100, "100", "100px", "100%") but nothing happened.


Any advice?

Thanks

Geo



-- 

--- 
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