Re: Records Feed: binding of to <field/> is essentially random?!</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=google-spreadsheets-api@googlegroups.com&q=from:%22Vic+Fryzel%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Vic Fryzel</span></span></a></span> <span class="date"><a href="/search?l=google-spreadsheets-api@googlegroups.com&q=date:20110106" rel="nofollow">Thu, 06 Jan 2011 15:16:45 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>David, I'm again asking you personally to please remove the drama from your posts. I'm happy to discuss technical issues with you at length.</pre><pre> Regarding your question: When you specify the title in the record entry you send upon creation that title is ignored. The title in record entries is provided as a formality to comply with GData standards, but there is technically no title of a record entry. There is no concept of naming a record entry in a spreadsheet. That said, in order to comply with GData standards, we do return a title. The title of a record is the first column (positionally within the spreadsheet) of that record. Let me go through this in depth. If I create this table: <entry> ... <gs:data insertionMode="overwrite" numRows="2" startRow="2"> <gs:column index="B" name="Age"/> <gs:column index="C" name="Name"/> <gs:column index="A" name="Birthday"/> <gs:column index="D" name="CanVote"/> ... </entry> And this record: <entry xmlns="<a rel="nofollow" href="http://www.w3.org/2005/Atom"">http://www.w3.org/2005/Atom"</a>; xmlns:gs="<a rel="nofollow" href="http://schemas.google.com/spreadsheets/2006"">http://schemas.google.com/spreadsheets/2006"</a>;> <title>Darcy</title> <gs:field name='Birthday'>2/10/1785</gs:field> <gs:field name='Age'>28</gs:field> <gs:field name='Name'>Darcy</gs:field> <gs:field name='CanVote'>No</gs:field> </entry> The title of that record will be "2/10/1785". If I add this record: <entry xmlns="<a rel="nofollow" href="http://www.w3.org/2005/Atom"">http://www.w3.org/2005/Atom"</a>; xmlns:gs="<a rel="nofollow" href="http://schemas.google.com/spreadsheets/2006"">http://schemas.google.com/spreadsheets/2006"</a>;> <gs:field name='Birthday'>2/10/1785</gs:field> <gs:field name='Age'>28</gs:field> <gs:field name='Name'>Darcy</gs:field> <gs:field name='CanVote'>No</gs:field> </entry> The title of that record will be "2/10/1785". If we take another look at the table: <entry> ... <gs:data insertionMode="overwrite" numRows="2" startRow="2"> <gs:column index="B" name="Age"/> <gs:column index="C" name="Name"/> <gs:column index="A" name="Birthday"/> <gs:column index="D" name="CanVote"/> ... </entry> Notice how Birthday is assigned to index A, e.g. column A in the sheet. That will make Birthday the left-most/first column in the sheet. Thus, the title for all records in this table will be the Birthday. If there are duplicate values in the Birthday column, there will be duplicate titles returned in entries. Entry titles for spreadsheet records are _not reliable_. Hope this helps, -Vic On Wed, Jan 5, 2011 at 11:13 PM, David Bullock <dtbull...@gmail.com> wrote: > Previously I was told in this forum (since the documentation didn't address > it), that the <title/>of a record entry would basically be the column with > the earliest index of the columns identified in the table definition. > > This is definitely not the case. Of 5 tables in 5 sheets, there is no > pattern whatsoever to which column is bound to <title/>. Only in one of > them happens to be bound to column A. > > Again, I'd file a bug, but since there is no documentation specifying the > correct behaviour, it can't exactly be held to account, can it? > > gaping with the wrong kind of awe, > David. > </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg00113.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#00117">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#00117">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg00118.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg00113.html">Records Feed: binding of <title/> to <field/> is...</a></span> <span class="sender italic">David Bullock</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">Re: Records Feed: binding of <title/> to <fiel...</span> <span class="sender italic">Vic Fryzel</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg00118.html">Re: Records Feed: binding of <title/> to <...</a></span> <span class="sender italic">David Bullock</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg00119.html">Re: Records Feed: binding of <title/> to ...</a></span> <span class="sender italic">Vic Fryzel</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg00122.html">Re: Records Feed: binding of <title/>...</a></span> <span class="sender italic">David Bullock</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg00135.html">Re: Records Feed: binding of <title...</a></span> <span class="sender italic">Roy Smith</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg00155.html">Re: Records Feed: binding of <t...</a></span> <span class="sender italic">Vic Fryzel</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg00183.html">Re: Records Feed: binding of &...</a></span> <span class="sender italic">David Bullock</span></li> <li class="icons-email"><span class="subject"><a href="msg00189.html">Re: Records Feed: binding of &...</a></span> <span class="sender italic">Vic Fryzel</span></li> </ul> </ul> </ul> </ul> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: Records Feed: binding of <title/> to <field/> is essentially random?!"> <input type="hidden" name="msgid" value="AANLkTim=YM1+dzC+mrtP2oZHGGQUHNQVyLCeLVQ-yb9j@mail.gmail.com"> <input type="hidden" name="relpath" value="google-spreadsheets-api@googlegroups.com/msg00117.html"> <input type="submit" value=" Vic Fryzel "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="google-spreadsheets-api@googlegroups.com"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search google-spreadsheets-api"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/google-spreadsheets-api@googlegroups.com/">google-spreadsheets-api - all messages</a></li> <li class="icons-about"><a href="/google-spreadsheets-api@googlegroups.com/info.html">google-spreadsheets-api - about the list</a></li> <li class="icons-expand"><a href="/search?l=google-spreadsheets-api@googlegroups.com&q=subject:%22Re%5C%3A+Records+Feed%5C%3A+binding+of+%3Ctitle%5C%2F%3E+to+%3Cfield%5C%2F%3E+is+essentially+random%5C%3F%5C%21%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg00113.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg00118.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">AANLkTim=YM1+dzC+mrtP2oZHGGQUHNQVyLCeLVQ-yb9j@mail.gmail.com</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9c5e30d0ce5ca0d6',t:'MTc2OTc0Njk3Mg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>