Yes. I have several other components composed in renderContentOn: I actually followed the example and have my result displayed, but i am interesting to know WABatchedList and WATableReport works together. TableReport shows a table, but BatchedList controls what to show? I am confused about this part.<br>
<br><div class="gmail_quote">On Wed, Aug 3, 2011 at 4:07 PM, Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Did you follow the principles of how to compose components?<br>
<br>
<a href="http://book.seaside.st/book/components/embedding/children" target="_blank">http://book.seaside.st/book/components/embedding/children</a><br>
<font color="#888888"><br>
Lukas<br>
</font><div><div></div><div class="h5"><br>
On 3 August 2011 22:55, Cong Tan <<a href="mailto:congcongtan@gmail.com">congcongtan@gmail.com</a>> wrote:<br>
> I have followed the example, but still unable to get anything on the brower.<br>
> result_set is a set that contains an object called "triples", each triple<br>
> has three instance variable, 'subject', 'predictor' and 'object'. I have<br>
> accessing and modifier method for each instances.<br>
> Here is what I have for renderResult: html:<br>
> result_array := result_set asArray.<br>
> rows := result_array.<br>
> columns := OrderedCollection new<br>
> add: (WAReportColumn selector: #subject title: 'Subject');<br>
> add: (WAReportColumn selector: #predicate title: 'Predictor');<br>
> add: (WAReportColumn selector: #object title: 'Object').<br>
> report := WATableReport new rows: rows; columns: columns.<br>
> html heading level3; with:'My Table'.<br>
> html render: report.<br>
> I don't get what the 'youself' in the example means, it gives me error<br>
> regardless has it or not.<br>
> In addition, how to integrate WABatchedList with WABatchedTable? I have<br>
> following code for for BatchedList, but nothing is displayed either.<br>
> result_array := result_set asArray.<br>
> batchedlist := WABatchedList new.<br>
> batchedlist items: result_array.<br>
> batchedlist batchSize: 10.<br>
> batchedlist renderContentOn: html.<br>
> On Wed, Aug 3, 2011 at 12:33 PM, Paul DeBruicker <<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>> wrote:<br>
>><br>
>> a detailed guide to tables see:<br>
>><br>
>> <a href="http://www.shaffer-consulting.com/david/Seaside/WATableReport/index.html" target="_blank">http://www.shaffer-consulting.com/david/Seaside/WATableReport/index.html</a><br>
>><br>
>> but basically in your component initialise table in an inst var, add it to<br>
>> the #children, and add the columns then set your Set as the rows. then in<br>
>> the renderContentOn: method do something like<br>
>><br>
>> renderContentOn: html<br>
>> html heading level3; with:'My Table'.<br>
>> html render: table.<br>
>><br>
>><br>
>><br>
>><br>
>> On 08/03/2011 01:19 PM, Cong Tan wrote:<br>
>>><br>
>>> I tried to use WABatchedList and WATableReport to display a Set from<br>
>>> my query engine, but failed to find any code examples online. Can<br>
>>> anyone providing me a code-snap of how to display them in<br>
>>> renderContentOn?<br>
>>><br>
>>> Thanks<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> seaside mailing list<br>
>>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>><br>
>> _______________________________________________<br>
>> seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><div class="im">--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>