Thank you.
On Thursday, November 8, 2012 4:43:12 PM UTC-5, Paolo Caruccio wrote:
>
> In the controller:
>
> myGrid = SQLFORM.grid(db.tablename)
> w2p_grid_tbl = myGrid.element('table')
> w2p_grid_tbl['_id'] = 'table_id'
>
> return dict(grid=myGrid)
>
> or in the view:
>
> {{extend 'layout.html'}}
> {{w2p_grid_tbl = grid.element('table')}}
> {{w2p_grid_tbl['_id'] = 'table_id'}}
>
> {{=grid}}
>
>
> Il giorno giovedì 8 novembre 2012 18:22:20 UTC+1, HP ha scritto:
>>
>> I am creating a table using SQLFROM.grid() and want to set the <table> id
>> attribute in the created HTML <table>,
>> how can I do that?
>>
>
--