<?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: Inconsistent Calculated data</title><link>https://www.infopathdev.com:443/forums/thread/25601.aspx</link><pubDate>Fri, 11 Jan 2008 19:27:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25601</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25601</wfw:commentRss><description>&lt;p&gt;Strange, I didn&amp;#39;t have any issue at all with how I described it. The rule is only supposed to fire after the id value updates. This rule then increments the seed (after the update). The id value is a &amp;quot;default value formula&amp;quot; and not a rule. And it is set to not update when the caclulation changes.&lt;/p&gt;</description></item><item><title>Re: Inconsistent Calculated data</title><link>https://www.infopathdev.com:443/forums/thread/25594.aspx</link><pubDate>Fri, 11 Jan 2008 17:03:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25594</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25594</wfw:commentRss><description>&lt;p&gt;Greg,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think I have nailed it down.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Just to let you know, my schema is for the most part the same way you have it, I just stripped away the fluff for the example.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I placed expression boxes linked to the seed fields and previewed the form.&amp;nbsp; When I add a day row, the seed increments, but the actual day_id does not update.&amp;nbsp; It appears the the rule incrementing the seed fires after IP populates the day_id default value.&amp;nbsp; Again, this only happens on the first addition.&amp;nbsp; After that IP seems to increment the seed then populate the day_id default.&lt;/p&gt;
&lt;p&gt;Strange,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ren&lt;/p&gt;</description></item><item><title>Re: Inconsistent Calculated data</title><link>https://www.infopathdev.com:443/forums/thread/25526.aspx</link><pubDate>Wed, 09 Jan 2008 22:03:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25526</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25526</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s what I did, and it was working fine for me:&lt;/p&gt;
&lt;p&gt;I took your same basic schema (except I had a days node around the repeating day node).&lt;/p&gt;
&lt;p&gt;Then I added two fields: day_id_seed, and detail_id_seed. I set both of these to a default value of 1.&lt;/p&gt;
&lt;p&gt;For day_id... I set the default value to day_id_seed (and unchecked update value when result changes check box). I added a rule to update day_id_seed to this nodes value + 1.&lt;/p&gt;
&lt;p&gt;For detail_id... I set the default value to detail_id_seed (and unchecked the update value when result changes check box). I added a rule to update detail_id_seed to this nodes value + 1.&lt;/p&gt;
&lt;p&gt;Then I added all the fields and repeating sections to the view, and previewed... everything worked as expected: inserting randomly, deleting rows, etc.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Inconsistent Calculated data</title><link>https://www.infopathdev.com:443/forums/thread/25510.aspx</link><pubDate>Wed, 09 Jan 2008 18:34:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25510</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25510</wfw:commentRss><description>&lt;p&gt;Greg,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yes, the values are cross session and I am storing the values in the main dom in their own elements.&amp;nbsp; The issue is when I increment, the first time a new row is added, the xpath expression does not fire off (or that&amp;#39;s what appears to be happening). This is cross session.&amp;nbsp; For example, If it is a brand new form and 1 row, the element number is 1.&amp;nbsp; When I add the second row, the rules should increment and and then assign, but the number stays at 1.&amp;nbsp; When I add the 3rd row, the number will increment to 2.&amp;nbsp; After that, the number will increment by one.&amp;nbsp; If I save the form with 5 rows and open it up, when I add the 6th row, it will not increment and it will start to increment on the 7th row.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if I said this before, for this project I am using IP 2007 on Windows XP.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Ren&lt;/p&gt;</description></item><item><title>Re: Inconsistent Calculated data</title><link>https://www.infopathdev.com:443/forums/thread/25490.aspx</link><pubDate>Wed, 09 Jan 2008 00:44:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25490</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25490.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25490</wfw:commentRss><description>&lt;p&gt;When you say &amp;quot;uniquely identified&amp;quot; -- does that mean uniquely identified across sessions, or just within a session? If just within a session, then you can assign a default value formula to get the count(previous::day_id)+1, for example. These then will always be numbered based on order.&lt;/p&gt;
&lt;p&gt;If you need to have it unique across sessions, then you need to store the latest number value somewhere... assign that value on add, then increment it--or increment it and then assign it (whichever). But the value must be stored in the main dom.&lt;/p&gt;</description></item><item><title>Inconsistent Calculated data</title><link>https://www.infopathdev.com:443/forums/thread/25487.aspx</link><pubDate>Tue, 08 Jan 2008 22:36:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25487</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25487.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25487</wfw:commentRss><description>&lt;p&gt;I have a form that has nested repeating tables (see below).&amp;nbsp; Each row needs to be uniquely identified.&amp;nbsp; I have a rule for the day when a new day is added to increment the day_id and the detail_id (day_id=day_id+1 and detail_id=detail_id+1 respectively).&amp;nbsp; Also, the &amp;nbsp;detail table has a rule to increment the detail_id when a new detail row is added.&amp;nbsp; Both id fields have default values of one.&lt;/p&gt;
&lt;p&gt;When I test the form, and add a day, the day_id does not increment until I add another day row.&amp;nbsp; The detail_id increments correctly.&amp;nbsp; I noticed in the rules that the set detail_id rule is first and the day_id rule is second.&amp;nbsp; I switched the order, and now the day_id increments properly and the detail_id increments after two additions.&lt;/p&gt;
&lt;p&gt;Any thoughts?&amp;nbsp; BTW, sorry for the line spacing, I tried to tighten it up, but I could not get the code to stick.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ren&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;THE WAY IT SHOULD BE&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;day&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;day_id/&amp;gt; = 1&lt;/pre&gt;&lt;pre&gt;	&amp;lt;details&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =1&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =2&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;/details&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/day&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;day&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;day_id/&amp;gt; =2&lt;/pre&gt;&lt;pre&gt;	&amp;lt;details&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =3&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =4&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;/details&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/day&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;pre&gt;&lt;strong&gt;WITH THE DETAIL_ID RULE FIRST&lt;/strong&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;day&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;day_id/&amp;gt; = 1&lt;/pre&gt;&lt;pre&gt;	&amp;lt;details&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =1&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =2&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;/details&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/day&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;day&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;day_id/&amp;gt; =&lt;em&gt;&lt;strong&gt;&lt;u&gt;1&lt;/u&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;details&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =3&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =4&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;/details&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/day&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WITH THE DAY_ID FIRST&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;day&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;day_id/&amp;gt; = 1&lt;/pre&gt;&lt;pre&gt;	&amp;lt;details&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =1&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =&lt;strong&gt;&lt;em&gt;&lt;u&gt;1&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;/details&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/day&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;day&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;day_id/&amp;gt; =2&lt;/pre&gt;&lt;pre&gt;	&amp;lt;details&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =2&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;		&amp;lt;detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;			&amp;lt;detail_id/&amp;gt; =3&lt;/pre&gt;&lt;pre&gt;		&amp;lt;/detail&amp;gt;&lt;/pre&gt;&lt;pre&gt;	&amp;lt;/details&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;/day&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>