Seems to be close to solution.

This works:
db.ware.represent=lambda r: [TD(r[name],_class="col1",_width="80px") for
name in db.ware.fields]

It is able to make the grid.


Now I need to combine it with my former version:

db.ware.represent=lambda row:
DIV( SPAN(A(row.artnr,_href=t2.action('display_ware',[row.id])),_class="col1"), 
SPAN(row.name,_class="col2"))

I have no clue how to do it to get both functionalities.
Any idea?
Julius

On So, 2008-12-06 at 23:37 +0100, Julius Minka wrote:
> So is this completely wrong direction in how to get a simple paginated
> grid with a clickable lines (or one cell in a line to redirect to
> display single record)?
> 
> On So, 2008-12-06 at 14:28 -0800, DenesL wrote:
> > Inline elements like SPAN can't have a width, only block elements can.
> > > 
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to