The reason for this is that when you assign value field as the beginning, the FilteringTable sets the valueField on it's "store" element, and from then on uses that (see the postCreate function).  You should instead set the FilteringTable's 
store.keyField element, or set them both.<br><br>Shane<br><br><div><span class="gmail_quote">On 08/12/06, <b class="gmail_sendername">MW</b> &lt;<a href="mailto:martinw@northern-lights.co.uk">martinw@northern-lights.co.uk
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Thanks for that Joe.<br><br>Just come accross another problem though:
<br><br>this<br> this.fTable.valueField = data[&quot;key&quot;];<br><br>doesnt seem to be working, the returned data returns the key [ valueField]<br>thats unique in the returned dataset.<br><br>If it set it when the filtertable is instantiated ...
<br><br>_this.fTable =<br>dojo.widget.createWidget(&quot;FilteringTable&quot;,{alternateRows:&quot;true&quot;, valueField:<br>&quot;ID&quot;},_this._fTable);<br><br>it works fine, but I dont want this to happen. I want the returned dataset
<br>to set the vaueField - can the valueField only be specified when the widget<br>is created?<br><br>any help muchly appreciated.<br><br>Martin.<br><br><br><br>Joe la Poutre wrote:<br>&gt;<br>&gt; On 12/8/06, MW &lt;<a href="mailto:martinw@northern-lights.co.uk">
martinw@northern-lights.co.uk</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; Damn - I hate that - just posed this and found a solution -<br>&gt;&gt;<br>&gt;&gt; removed<br>&gt;&gt;&nbsp;&nbsp;- this.fTable.store.clearData();<br>&gt;&gt; and replaced with
<br>&gt;&gt;&nbsp;&nbsp;- this.fTable.columns = [];<br>&gt;&gt;<br>&gt;&gt; is this correct? - or is there a method to clear the columns?<br>&gt;<br>&gt; This works just fine for me: this.fTable.store.setData([]);<br>&gt;<br>&gt; which may be just a tad cleaner if the columns field was not intended
<br>&gt; to be exposed (just guessing here).<br>&gt;<br>&gt; Cheers,<br>&gt;<br>&gt; Joe.<br>&gt; _______________________________________________<br>&gt; Dojo FAQ: <a href="http://dojo.jot.com/FAQ">http://dojo.jot.com/FAQ
</a><br>&gt; Dojo Book: <a href="http://manual.dojotoolkit.org/DojoDotBook">http://manual.dojotoolkit.org/DojoDotBook</a><br>&gt; <a href="mailto:Dojo-interest@dojotoolkit.org">Dojo-interest@dojotoolkit.org</a><br>&gt; <a href="http://dojotoolkit.org/mailman/listinfo/dojo-interest">
http://dojotoolkit.org/mailman/listinfo/dojo-interest</a><br>&gt;<br>&gt;<br><br>--<br>View this message in context: <a href="http://www.nabble.com/Clearting-Out-and-re-populating-filteringtable-tf2779995.html#a7758573">http://www.nabble.com/Clearting-Out-and-re-populating-filteringtable-tf2779995.html#a7758573
</a><br>Sent from the Dojo mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>Dojo FAQ: <a href="http://dojo.jot.com/FAQ">http://dojo.jot.com/FAQ</a>
<br>Dojo Book: <a href="http://manual.dojotoolkit.org/DojoDotBook">http://manual.dojotoolkit.org/DojoDotBook</a><br><a href="mailto:Dojo-interest@dojotoolkit.org">Dojo-interest@dojotoolkit.org</a><br><a href="http://dojotoolkit.org/mailman/listinfo/dojo-interest">
http://dojotoolkit.org/mailman/listinfo/dojo-interest</a><br></blockquote></div><br>