<?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: Count of Numbered List behaviors</title><link>https://www.infopathdev.com:443/forums/thread/120789.aspx</link><pubDate>Tue, 09 Apr 2019 16:42:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120789</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120789.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120789</wfw:commentRss><description>Yuck. You might try setting postback to always on the list control - right click the control and under browser set the radio to always, see if that makes a difference? Any XPath reference will talk about preceding-sibling - I like this one: http://zvon.org/xxl/XPathTutorial/Output/examples.html</description></item><item><title>Re: Count of Numbered List behaviors</title><link>https://www.infopathdev.com:443/forums/thread/120787.aspx</link><pubDate>Tue, 09 Apr 2019 15:38:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120787</guid><dc:creator>dlafbsci</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120787</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, this is pretty close!&amp;nbsp;The behavior of the rule works differently in preview vs. in the browser however. :(&lt;/p&gt;&lt;p&gt;&amp;nbsp;In preview the total updates as you add or subtract line items from the list. In the browser, the total only changes when a line is added. If you add in 10 lines, then start deleting them, the total will stay at 10 until you add a line again.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Also after around 50-75 iterations of the rule the form crashes with a &amp;quot;This session has exceeded the amount of allowable resources&amp;quot; error. Haha!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is there a good resource out there&amp;nbsp;for a list of functions that don&amp;#39;t appear in the all category of the&amp;nbsp;function builder and their uses&amp;nbsp;(such as preceding sibling)?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Count of Numbered List behaviors</title><link>https://www.infopathdev.com:443/forums/thread/120781.aspx</link><pubDate>Tue, 09 Apr 2019 14:44:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120781</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120781</wfw:commentRss><description>Will the user still be adding rows after they have entered their own value? If not, see attached - I added a rule to field1 instead of using a calc&amp;#39;d default in field2. If so, you may need a way to determine user intent, like adding a checkbox they can tick to indicate that they don&amp;#39;t want the total overwritten, and you could then use a condition on the rule on field1 to take that into account.</description></item><item><title>Count of Numbered List behaviors</title><link>https://www.infopathdev.com:443/forums/thread/120775.aspx</link><pubDate>Fri, 05 Apr 2019 16:37:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120775</guid><dc:creator>dlafbsci</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=120775</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a form where users enter items into a numbered list. I want the total number of items entered into that list to appear in another field as they update it. This can easily be accomplished using a Default Value of Count(List)&lt;/p&gt;&lt;p&gt;&amp;nbsp;HOWEVER&lt;/p&gt;&lt;p&gt;&amp;nbsp;I would also like the user to be able to override the total field with their own value, in case entering that many list items would be impractical.&amp;nbsp;For example, they might&amp;nbsp;write &amp;quot;1 through 100&amp;quot; in a single&amp;nbsp;line on the&amp;nbsp;numbered list, and then go&amp;nbsp;and change the&amp;nbsp;Total field to 100 instead of the 1 that is being calculated. &lt;/p&gt;&lt;p&gt;&amp;nbsp;The issue arises when the form is reopened after submit, and the default value is recalculated back to 1 as the form loads, even though the&amp;nbsp;user submitted value of 100 is still stored. My thought was then to set the Total value with a rule on the numbered list, instead of using a default value on the total, and trigger the rule &amp;quot;when the field changes&amp;quot;&lt;/p&gt;&lt;p&gt;The problem is the rule won&amp;#39;t work correctly, as the Count will always return a value of 1 if it is set to run &amp;quot;when the field changes&amp;quot;&lt;/p&gt;&lt;p&gt;The same rule applied to a button works with the expected result, but this&amp;nbsp;is clunky and&amp;nbsp;not aesthetically pleasing.&lt;/p&gt;&lt;p&gt;Am I overthinking this? How do I get the form to total up a numbered&amp;nbsp;list as it changes in real time (and allow the user to change it), but &lt;i&gt;not&lt;/i&gt; on form load?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>