<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Working with the YUI DataTable Control, Part 1: Getting Started</title>
	<atom:link href="http://www.yuiblog.com/blog/index.php/2007/09/12/satyam-datatable/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/</link>
	<description>The official blog of the YUI Project.</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:46:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Sacmac</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-574462</link>
		<dc:creator>Sacmac</dc:creator>
		<pubDate>Thu, 19 Feb 2009 10:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-574462</guid>
		<description>Hi,
We are facing problem with sorting feature. We have two tables, first table has the data rows and when we select the row from first table, it will bring the data for the below table based on the selected row.

when the page is first loaded, by default the sorting is in ascending order and when we select the row in first table same id is passed to get the data for below table. Now when we click on the header to display the records in descending order (now the order of the record has changed) and then click on same record the id that is passed to the below table to fetch the values is different, it is the id of the record that was there at that position before sorting (before click on header). This means the order of the record is changed just to display them on the screen while the id associated with them are not changing.

Please find the implementation

function doSelectRow(event, target) {
	YAHOO.mydata.myDataTable.onEventSelectRow(event, target);
var selectedRows = YAHOO.mydata.myDataTable.getSelectedRows();
var record = YAHOO.mydata.myDataTable.getRecord(selectedRows[0]);

Dom.get(&quot;assignedobjects&quot;).innerHTML = &quot;&lt;B&gt;Please wait. Searching...&lt;/B&gt;&quot;;	             
getDataforBelowTable(record.getData(&quot;myid&quot;));

}</description>
		<content:encoded><![CDATA[<p>Hi,<br />
We are facing problem with sorting feature. We have two tables, first table has the data rows and when we select the row from first table, it will bring the data for the below table based on the selected row.</p>
<p>when the page is first loaded, by default the sorting is in ascending order and when we select the row in first table same id is passed to get the data for below table. Now when we click on the header to display the records in descending order (now the order of the record has changed) and then click on same record the id that is passed to the below table to fetch the values is different, it is the id of the record that was there at that position before sorting (before click on header). This means the order of the record is changed just to display them on the screen while the id associated with them are not changing.</p>
<p>Please find the implementation</p>
<p>function doSelectRow(event, target) {<br />
	YAHOO.mydata.myDataTable.onEventSelectRow(event, target);<br />
var selectedRows = YAHOO.mydata.myDataTable.getSelectedRows();<br />
var record = YAHOO.mydata.myDataTable.getRecord(selectedRows[0]);</p>
<p>Dom.get(&#8220;assignedobjects&#8221;).innerHTML = &#8220;<b>Please wait. Searching&#8230;</b>&#8220;;<br />
getDataforBelowTable(record.getData(&#8220;myid&#8221;));</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Working with the YUI DataTable (Updated for v2.6.0), Part 1: Getting Started &#187; Yahoo! User Interface Blog</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-495370</link>
		<dc:creator>Working with the YUI DataTable (Updated for v2.6.0), Part 1: Getting Started &#187; Yahoo! User Interface Blog</dc:creator>
		<pubDate>Thu, 16 Oct 2008 00:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-495370</guid>
		<description>[...] article is an update of a similar article written when version 2.3 of YUI was current. With version 2.6, the DataTable has been taken out of [...]</description>
		<content:encoded><![CDATA[<p>[...] article is an update of a similar article written when version 2.3 of YUI was current. With version 2.6, the DataTable has been taken out of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satyam</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-480405</link>
		<dc:creator>Satyam</dc:creator>
		<pubDate>Sun, 28 Sep 2008 10:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-480405</guid>
		<description>&lt;a href=&quot;#comment-477340&quot; rel=&quot;nofollow&quot;&gt;Naresh&lt;/a&gt;:

Not all the fields read by the DataSource need to be listed in the columns definitions, you can list one of the fields to be combined and not the other.  In the one listed, you can assign a formatter function which has access to the Record object for that row and can read any value of any field read in by the DataSource, regardless whether it is listed in the Column Defs or not.</description>
		<content:encoded><![CDATA[<p><a href="#comment-477340" rel="nofollow">Naresh</a>:</p>
<p>Not all the fields read by the DataSource need to be listed in the columns definitions, you can list one of the fields to be combined and not the other.  In the one listed, you can assign a formatter function which has access to the Record object for that row and can read any value of any field read in by the DataSource, regardless whether it is listed in the Column Defs or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naresh</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-477340</link>
		<dc:creator>Naresh</dc:creator>
		<pubDate>Wed, 24 Sep 2008 22:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-477340</guid>
		<description>How do I join two columns data and display it in one column?</description>
		<content:encoded><![CDATA[<p>How do I join two columns data and display it in one column?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satyam</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-457333</link>
		<dc:creator>Satyam</dc:creator>
		<pubDate>Sat, 30 Aug 2008 06:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-457333</guid>
		<description>&lt;a href=&quot;#comment-456723&quot; rel=&quot;nofollow&quot;&gt;Scott&lt;/a&gt;,

For JSON data, as used in the example, the DataSource locates the node containing the repeating items, the records, through the responseSchema.resultsList property.  Anything in other branches of the JSON data structure will be ignored.

Once at that node, it will expect to find an array and it will loop through its contents.  For each item it finds, it will look for the values of the properties you name in the responseSchema.fields array.  

For JSON data you have to be quite explicit in how to reach each piece of data giving the full path to each value.  For XML data, it expects a single name for each value in the fields array and it will locate any value inside a tag of that name no matter how deep or, failing that, an attribute with that name. For HTML, plain arrays or text formats, it will pick fields in the order in which the fields are listed.</description>
		<content:encoded><![CDATA[<p><a href="#comment-456723" rel="nofollow">Scott</a>,</p>
<p>For JSON data, as used in the example, the DataSource locates the node containing the repeating items, the records, through the responseSchema.resultsList property.  Anything in other branches of the JSON data structure will be ignored.</p>
<p>Once at that node, it will expect to find an array and it will loop through its contents.  For each item it finds, it will look for the values of the properties you name in the responseSchema.fields array.  </p>
<p>For JSON data you have to be quite explicit in how to reach each piece of data giving the full path to each value.  For XML data, it expects a single name for each value in the fields array and it will locate any value inside a tag of that name no matter how deep or, failing that, an attribute with that name. For HTML, plain arrays or text formats, it will pick fields in the order in which the fields are listed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Plumlee</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-456723</link>
		<dc:creator>Scott Plumlee</dc:creator>
		<pubDate>Fri, 29 Aug 2008 19:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-456723</guid>
		<description>Thank you for a great article.  But I&#039;m not clear on how the DataSource will find the data if the format doesn&#039;t match exactly what is given in the examples.

For the example using &lt;code&gt;SalesDatabase&lt;/code&gt;, all the information is a nested property of that item - the metadata and the actual results.

But for your examples, you don&#039;t give a top-level property.  You say this:
&lt;blockquote cite=&quot;satyam&quot;&gt;
DataSource will also completely ignore the replyCode and replyText properties: It will go straight for the data. Nevertheless, if it doesn’t find the data element, it will trigger a responseParseEvent event, where you should be able to get to the full response and find out why did it fail.
&lt;/blockquote&gt;

Does the DataSource look for the first array that is a value of a property, or MUST you specify what the top level property is, and then have the actual data be the value of a sub-property?

Hope this makes sense, I&#039;m not stating this too well.  It may be I don&#039;t understand how JSON is structured enough to know the answer.</description>
		<content:encoded><![CDATA[<p>Thank you for a great article.  But I&#8217;m not clear on how the DataSource will find the data if the format doesn&#8217;t match exactly what is given in the examples.</p>
<p>For the example using <code>SalesDatabase</code>, all the information is a nested property of that item &#8211; the metadata and the actual results.</p>
<p>But for your examples, you don&#8217;t give a top-level property.  You say this:</p>
<blockquote cite="satyam"><p>
DataSource will also completely ignore the replyCode and replyText properties: It will go straight for the data. Nevertheless, if it doesn’t find the data element, it will trigger a responseParseEvent event, where you should be able to get to the full response and find out why did it fail.
</p></blockquote>
<p>Does the DataSource look for the first array that is a value of a property, or MUST you specify what the top level property is, and then have the actual data be the value of a sub-property?</p>
<p>Hope this makes sense, I&#8217;m not stating this too well.  It may be I don&#8217;t understand how JSON is structured enough to know the answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satyam</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-451252</link>
		<dc:creator>Satyam</dc:creator>
		<pubDate>Fri, 22 Aug 2008 15:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-451252</guid>
		<description>&lt;a href=&quot;#comment-334068&quot; rel=&quot;nofollow&quot;&gt;Hrishikesh&lt;/a&gt;, &lt;a href=&quot;#comment-336050&quot; rel=&quot;nofollow&quot;&gt;Seshu&lt;/a&gt;, &lt;a href=&quot;#comment-356566&quot; rel=&quot;nofollow&quot;&gt;alecs&lt;/a&gt; and the rest to come,

This is a fine place to discuss conceptual issues but when asking for specific solutions to particular problems, the YAHOO Developers Network - JavaScript list at: &lt;a href=&quot;http://tech.groups.yahoo.com/group/ydn-javascript/&quot; rel=&quot;nofollow&quot;&gt;http://tech.groups.yahoo.com/group/ydn-javascript/&lt;/a&gt; is a much better place to deal with them.</description>
		<content:encoded><![CDATA[<p><a href="#comment-334068" rel="nofollow">Hrishikesh</a>, <a href="#comment-336050" rel="nofollow">Seshu</a>, <a href="#comment-356566" rel="nofollow">alecs</a> and the rest to come,</p>
<p>This is a fine place to discuss conceptual issues but when asking for specific solutions to particular problems, the YAHOO Developers Network &#8211; JavaScript list at: <a href="http://tech.groups.yahoo.com/group/ydn-javascript/" rel="nofollow">http://tech.groups.yahoo.com/group/ydn-javascript/</a> is a much better place to deal with them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satyam</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-451250</link>
		<dc:creator>satyam</dc:creator>
		<pubDate>Fri, 22 Aug 2008 15:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-451250</guid>
		<description>&lt;a href=&quot;#comment-450896&quot; rel=&quot;nofollow&quot;&gt;Harry&lt;/a&gt;

The DataTable does not keep any reference to the original source of data, whatever it might have been.  All changes are done on its internal RecordSet.  It is up to you to send those updates elsewhere.  The DataTable will only help in notifying you that changes have been made and telling you what they are.  How you process them is up to you.</description>
		<content:encoded><![CDATA[<p><a href="#comment-450896" rel="nofollow">Harry</a></p>
<p>The DataTable does not keep any reference to the original source of data, whatever it might have been.  All changes are done on its internal RecordSet.  It is up to you to send those updates elsewhere.  The DataTable will only help in notifying you that changes have been made and telling you what they are.  How you process them is up to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-450896</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Fri, 22 Aug 2008 06:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-450896</guid>
		<description>I am populating the table with XML. What is best approach to keep my XML source in sync with the changes being in done in the cell?</description>
		<content:encoded><![CDATA[<p>I am populating the table with XML. What is best approach to keep my XML source in sync with the changes being in done in the cell?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alecs</title>
		<link>http://www.yuiblog.com/blog/2007/09/12/satyam-datatable/comment-page-1/#comment-356566</link>
		<dc:creator>alecs</dc:creator>
		<pubDate>Tue, 22 Apr 2008 21:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/09/12/satyam-datatable/#comment-356566</guid>
		<description>Hi there!
is there any method to actually send through post information from a datatable widget ?
if yes, how ?
thanks
alecs</description>
		<content:encoded><![CDATA[<p>Hi there!<br />
is there any method to actually send through post information from a datatable widget ?<br />
if yes, how ?<br />
thanks<br />
alecs</p>
]]></content:encoded>
	</item>
</channel>
</rss>

