[web2py] Re: represent in sqlform.grid and javascript

2017-10-04 Thread 黄祥
for 1st problem, tried to print the value of the field just curious what SQLFORM.grid() does with this kind of data with represent, so that it can appears smoothly, while using another it's throw an error, any idea or hints? thanks and best regards, stifan -- Resources: - http://web2py.com

[web2py] Re: represent in sqlform.grid and javascript

2017-10-04 Thread 黄祥
*modules/test_grid.py* def list(table): query = (table.is_active == True) items = current.db(query).select(orderby = ~table.created_on).render() actions = [ {'is_item_action': lambda item: True, 'url': lambda item: URL('view', args = [item.id] ), 'icon': 'zoom-in', 'title':

[web2py] Re: represent in sqlform.grid and javascript

2017-10-04 Thread Dave S
I think you should show how you're setting up the datatables.net context. It looks like there is something about how pydal is called from that context, perhaps something that SQLFORM.grid initializes that is being missed in the JS setup. /dps On Wednesday, October 4, 2017 at 1:42:19 AM