Hi,
is there a plan to create a control “rows” like the control “list”?
I can use “list” to create a list from a database, but how can I create table rows from a database?
I tried to do this:

        table {
            row {
                headerCol { "Name"}
                headerCol { "If(A)"  }
                headerCol { "Vr(V)"  }
                headerCol { "Vf(V)"  }
                headerCol { "Pd(W)"  }
            }
            list(d in Diode.all() where type==dt order by index) {
                row { 
                    cell { label(d.label) }
                    cell { label(d._if)   } 
                    cell { label(d._vr)   } 
                    cell { label(d._vf)   } 
                    cell { label(d._pd)   }
                }
            }
        }

but the result is:

http://www.si14.com.br/test/SemiconductorsGuide.html

(click the fllowing sequence: “Add”, “Button”, “Diodes”, “Rectifier”)

Thank you very much…

Submitted on 10 June 2011 at 03:59

On 10 June 2011 at 09:14 Zef Hemel tagged @zefhemel

On 15 June 2011 at 10:54 Zef Hemel commented:

I’ve been thinking about this a lot, but cannot seem to come up with a solution to this problem. The issue is that the list construct needs some kind of HTML container element to keep track of its contents (so that it can update it later). Currently I use a span for this purpose, but this breaks tables. I do not know of any HTML element that I can safely put in the middle of a table, without breaking it. Do you?


On 15 June 2011 at 10:54 Zef Hemel removed tag @zefhemel

Log in to post comments