You need to supply a block [ :aRow :aDate | "some code using aDate and aRow" ] that returns the text to be rendered for the date/row. You supply it as the argument to rowsAndDatesDisplay: aBlock which will store the block in the cellBlock instance variable.<br>
<br><div class="gmail_quote">On Tue, Jan 11, 2011 at 3:51 PM, <span dir="ltr"><<a href="mailto:recursive68@gmail.com">recursive68@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>Has anyone got an example of how to use WASelectionDateTable. I'm stuck receiving the following error:</div><div><br></div><div>MessageNotUnderstood: receiver of "value:value:" is nil</div>
<div>UndefinedObject(Object)>>doesNotUnderstand: #value:value </div><div>[] WASelectionDateTable>>renderCellForDate:row:index:on: </div><div><br></div><div>Code is:</div><div><br></div><div><div>initialize <span style="white-space:pre-wrap">        </span></div>
<div><span style="white-space:pre-wrap">        </span>|start plus1 plus2 plus3|</div><div><span style="white-space:pre-wrap">        </span>super initialize.</div><div><span style="white-space:pre-wrap">        </span>plantable := WASelectionDateTable new. </div>
<div><span style="white-space:pre-wrap">        </span>start := Date today.</div><div><span style="white-space:pre-wrap">        </span>plus1 := start addDays: 1.</div><div><span style="white-space:pre-wrap">        </span>plus2 := start addDays: 2.</div>
<div><span style="white-space:pre-wrap">        </span>plus3 := start addDays: 3.</div><div><span style="white-space:pre-wrap">        </span>plantable startDate: start.</div><div><span style="white-space:pre-wrap">        </span>plantable endDate: (start addDays: 3).</div>
<div><span style="white-space:pre-wrap">        </span>aCollection := Dictionary new.</div><div><span style="white-space:pre-wrap">        </span>aCollection add: start -> 'One';add: plus1 -> 'Two'; add: plus2 -> 'Three'; add: plus3 -> 'Four';yourself. </div>
<div><span style="white-space:pre-wrap">        </span>plantable rows: aCollection.</div></div><div><br></div><div><br></div><div><div>renderContentOn: html</div><div><span style="white-space:pre-wrap">        </span>html render: plantable</div>
</div><div><br></div><div>Thanks</div>
<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></blockquote></div><br><br clear="all"><br>-- <br><a href="http://john-mckeon.us" target="_blank">http://john-mckeon.us</a><br>