[Seaside] Rendering transposed tables

Siemen Baader siemenbaader at gmail.com
Tue Jan 22 13:59:27 UTC 2019


I think you could do it with two do: loops, an outer iterating the message selectors and an inner iterating the objects. Then you just render a td element containing what the object responds to #perform selector. 
Wrap the inner loop in a tr block to create table rows. 

If you revers the order of the loops you get the regular order of one row per object. 

Hth
Siemen 


Sent from my iPhone

> On 22 Jan 2019, at 14.46, Karsten Kusche <karsten at heeg.de> wrote:
> 
> Esteban,
> 
> if it’s easier to render objects per row, why not create an object for this purpose? Then you can use the new objects like you’d expect and create them from the existing objects.
> 
> Kind Regards
> Karsten
> 
> 
> 
> Am 22. Januar 2019 um 14:42:49, Esteban Maringolo (emaringolo at gmail.com) schrieb:
> 
>> I have a list of objects and I need to render them in a transposed table, it is, one object per column instead of object per row as it would be easiest way to do it.
>> 
>> Did anybody create a set of utility methods to render a table this way? 
>> 
>> Ideally without big library dependencies (I'm using Seaside to render the HTML, but the output if for reporting/email).
>> 
>> Thanks!
>> 
>> 
>> Esteban A. Maringolo
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190122/e4d54411/attachment-0001.html>


More information about the seaside mailing list