[Chameleon] Table widget

Julien-Samuel Lacroix jlacroix at dmsolutions.ca
Thu Sep 16 07:20:16 EDT 2004

Here's what you need:
<cwc2 type="table" sharedresourcename="MyResult" >
    <TEMPLATE Name="HEADER" Content="<table><tr>"/>
    <TEMPLATE Name="BODY" 
    <TEMPLATE Name="FOOTER" Content="</tr></table>"/>

The [html_content] should be...html. The body will be repeated for each 
row in your shared resource. So if MyResult contains:
col_name1  |  col_name2
Joe        |  123
Bill       |  456
Jack       |  789

The above widget example will output something like that (Header, Body, 
Body, Body, Footer):


Berend Veldkamp wrote:
> Yes, yes, I read the wiki too, but imagine me as being not too bright 
> ;-) What exactly do I put in [html content], I tried:
> <cwc2 type="table" sharedresourcename="MyResult" >
>   <TEMPLATE Name="HEADER" Content="Header"/>
>   <TEMPLATE Name="BODY" Content="%column_name%"/>
>   <TEMPLATE Name="FOOTER" Content="Footer"/>
> </cwc2>
> and this shows me the column values, but how do I put this in a html 
> <table> structure?
> Thanks for your patience,
> Berend

Julien-Samuel Lacroix            jlacroix at dmsolutions.ca
DM Solutions Group               http://www.dmsolutions.ca/

More information about the Chameleon mailing list