[web2py] Re: Data table

2010-05-08 Thread annet
Hi Sverre,

Here's an example of how you would make the id a link:

table id=init class=display
  thead
tr
  thcompany id/th
  thcompany name/th
/tr
  /thead
  tbody
{{for company in rows:}}
  tr
td
  {{=A(company.id,_onmouseover=this.style.cursor='pointer';,
\
 
_onclick=javascript:clublocatordetails('%s')%URL(r=request,f='details',args=[company.id]))}}
/td
td
  {{=company.name}}
/td
  /tr
{{pass}}
  /tbody
/table

Here the link opens a details view in a new window, but that's
optional.


Regards,

Annet.


[web2py] Re: Data table

2010-05-06 Thread annet
Hi Sverre,

I am using Allan Jardine's DataTables: http://www.datatables.net/


Regards,

Annet.


[web2py] Re: Data table

2010-05-06 Thread Sverre


On 6 Mai, 08:25, annet annet.verm...@gmail.com wrote:
 Hi Sverre,

 I am using Allan Jardine's DataTables:http://www.datatables.net/

 Regards,

 Annet.

This table is looking very nice. Thank you.


[web2py] Re: Data table

2010-05-05 Thread mr.freeze
You have a few options:

SQLTABLE
Crud.select - an abstraction over SQLTABLE
WebGrid - http://web2pyslices.com/main/slices/take_slice/39
jqGrid plugin - http://web2py.com/plugins/default/jqgrid



On May 5, 6:08 am, Sverre sverreodeg...@gmail.com wrote:
 has someone a data table like here

 http://www.web2py.com/plugins/default/datatable

 but with the feature to make links in the id column?