Hi Sverre,

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

<table id="init" class="display">
  <thead>
    <tr>
      <th>company id</th>
      <th>company 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.

Reply via email to