<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/52470.aspx</link><pubDate>Thu, 04 Mar 2010 17:01:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52470</guid><dc:creator>Selarim</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52470.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52470</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Matt Faus:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Hm, yes, I do see my mistake now. I can&amp;#39;t think of an easy way to do this with simple formulas / rules, but I know you could do it with a helper node. Make an extra node somewhere (probably in a secondary data source) and update it each time you insert a new row with the next number that should be used.  The set the default value of the autonumber field in the table to this node, and turn off auto-update.&lt;br /&gt;&lt;br /&gt;I think this should work, even though it is a few more steps. Hope you get it working!&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Matt, I tried to do that and it didn&amp;#39;t work...Actually, it works until the first postback (Submit button, or when I choose an user in a contact selector)...Before the postback, the numbers are &amp;quot;1, 2, 3, 4, 5, 6&amp;quot;...After the postback, it&amp;#39;s &amp;quot;1, 1, 2, 3, 4, 5&amp;quot;...All the numbers (but the first) change...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any idea?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you.. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/51775.aspx</link><pubDate>Mon, 15 Feb 2010 19:09:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51775</guid><dc:creator>patilbh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51775</wfw:commentRss><description>&lt;p&gt;Hi matt,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The problem can be resolved with the same formula, only thing we need to do is check the checkbox to recalculate, here it works good. &lt;/p&gt;</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/27697.aspx</link><pubDate>Fri, 04 Apr 2008 09:05:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27697</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27697.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27697</wfw:commentRss><description>&lt;div&gt;Hi,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;To reproduce follow the steps below:&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Create new form&lt;/li&gt;
&lt;li&gt;Create new -repeating-&amp;nbsp;group named repeating_group in&amp;nbsp; the root&lt;/li&gt;
&lt;li&gt;Create new field in repeating_group called autonummer&lt;/li&gt;
&lt;li&gt;Create some more fields in repeating_group as you like &lt;/li&gt;
&lt;li&gt;Drag the repeating group with rightmouse from datasource on the form and choose repeating section with controls&lt;/li&gt;
&lt;li&gt;Doubleclick autonummer field and set its value to &lt;em&gt;count(../preceding-sibling::my:repeating_group) + 1&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Make sure update value is checked (default)&lt;/li&gt;
&lt;li&gt;Preview form and add some&amp;nbsp;rows&lt;/li&gt;&lt;/ol&gt;
&lt;div&gt;Albert&lt;/div&gt;</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/27236.aspx</link><pubDate>Mon, 17 Mar 2008 04:05:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27236</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27236</wfw:commentRss><description>&lt;p&gt;Further to the above, I cannot even get this to work on a brand new template with a single repeating table with 3 default fields (field1, field2, field3).&amp;nbsp; If I use the formula listed in this post, I simply get a &amp;#39;1&amp;#39; in field3 (being the increment field) for every inserted row.&lt;/p&gt;
&lt;p&gt;Please Help&lt;/p&gt;</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/27235.aspx</link><pubDate>Mon, 17 Mar 2008 00:33:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27235</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27235</wfw:commentRss><description>&lt;p&gt;I am trying to use this code in the formula of a field in my repeating table, however, I am having trouble with the correct syntax to identify my:table_row. My form is in JScript and has the following structure.. &lt;/p&gt;
&lt;p&gt;my:myfields/my:itemisations/my:itemrepeatingsection/my:accountsdetails&lt;/p&gt;
&lt;p&gt;...where &amp;quot;accountsdetails&amp;quot; is a (non-repeating) sub-group in the repeating section holding a field called &amp;quot;rowcount&amp;quot; in which I am trying to establish the incrementing number.&lt;/p&gt;</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/20319.aspx</link><pubDate>Fri, 01 Jun 2007 13:27:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20319</guid><dc:creator>nikopol</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20319</wfw:commentRss><description>&lt;p&gt;Hello,
I have a solution for you (which works for me): you have to put the following rule in the settings of your text box (in the default value):&lt;/p&gt;&lt;p&gt;&amp;quot;count(../preceding-sibling::my:table_row) + 1&amp;quot;&amp;nbsp; (where table_row is the name of the row of your table :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Don&amp;#39;t forget to tick the check box &amp;quot;Update this value...&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Hope this helps.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Nicolas.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/9346.aspx</link><pubDate>Fri, 17 Mar 2006 03:05:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9346</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9346.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9346</wfw:commentRss><description>Hm, yes, I do see my mistake now. I can&amp;#39;t think of an easy way to do this with simple formulas / rules, but I know you could do it with a helper node. Make an extra node somewhere (probably in a secondary data source) and update it each time you insert a new row with the next number that should be used.  The set the default value of the autonumber field in the table to this node, and turn off auto-update.&lt;br /&gt;&lt;br /&gt;I think this should work, even though it is a few more steps. Hope you get it working!</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/9345.aspx</link><pubDate>Fri, 17 Mar 2006 00:03:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9345</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9345.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9345</wfw:commentRss><description>Hi Matt,&lt;br /&gt;&lt;br /&gt;This does work great for insetions, but for a little issue where, once you delete a row, and then proceed to add an new row, the number generated is the same as the last number, eg: 1,2,4,5 and then add new repeating rows, which would then show 1,2,4,5,5,6,7 etc.  So it seems to duplicate the last number, and in some cases, start the count from a previous number like 1,2,4,5,4,5,6,7. Any way around this?&lt;br /&gt;&lt;br /&gt;Cheers,</description></item><item><title>Re: Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/9344.aspx</link><pubDate>Thu, 16 Mar 2006 23:52:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9344</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9344</wfw:commentRss><description>G&amp;#39;day Carlos,&lt;br /&gt;&lt;br /&gt;Right below the default value formula box there is a checkbox that says &amp;quot;Update this value when the result of the formula is recalculated&amp;quot;. If you uncheck this, it should work how you want it.</description></item><item><title>Auto number rows</title><link>https://www.infopathdev.com:443/forums/thread/5453.aspx</link><pubDate>Thu, 16 Mar 2006 23:21:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5453</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5453</wfw:commentRss><description>I need to auto number repeating section row field, but unlike use the preceding-sibling option, I dont the numbers to adjust if a row is deleted. Example, if I create 7 repeated rows, the row number would be 1,2,3,4,5,6,7. But if I delete say row 3, the numbers should still read 1,2,4,5,6,7 rather than adjusting for the deleted 3.&lt;br /&gt;&lt;br /&gt;Any ideas how to do this without code?</description></item></channel></rss>