<?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: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119734.aspx</link><pubDate>Fri, 31 Aug 2018 15:19:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119734</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119734.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119734</wfw:commentRss><description>Good work around - like I said, I&amp;#39;ve never seen this before, but your schema is rather complex, and it could be you found an InfoPath bug. :)</description></item><item><title>Re: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119732.aspx</link><pubDate>Fri, 31 Aug 2018 09:55:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119732</guid><dc:creator>Selhurtsboys</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119732.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119732</wfw:commentRss><description>I found one other field that was being set inadvertently:
&lt;pre&gt;
Field:                    /ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:DbtrAcct/ns1:Id/ns1:IBAN
Default value:       xdXDocument:GetDOM(&amp;quot;Payments_Current&amp;quot;)/dfs:myFields/dfs:dataFields/d:Payments_Current[count(current()/../preceding::ns1:PmtInf) + 1]/@DbtrAcctIBAN
Set in error:         /ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:ChrgsAcct/ns1:Id/ns1:IBAN
&lt;/pre&gt;
and it&amp;#39;s not under the CdtrAgt tag.

As a workaround I&amp;#39;ve set up a form load rule and set all the fields being wrongly set to null and the result is what I wanted so that works for my purposes. It would imply the errors occur while setting defaults but before the load rules occur.</description></item><item><title>Re: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119729.aspx</link><pubDate>Thu, 30 Aug 2018 18:00:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119729</guid><dc:creator>Selhurtsboys</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119729.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119729</wfw:commentRss><description>No, changing the MmbId field in filler doesn&amp;#39;t change the same named field under CdtrAgt. I could only tell this by saving the form and checking the xml because, if you look at the template, you&amp;#39;ll see the MmbId field under the CdtrAgt tag isn&amp;#39;t even on the form. I think there must be something strange going wrong during the default setting and there seems to be 3 fields inadvertently set as follows:

&lt;pre&gt;
Field:		/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:DbtrAgt/ns1:FinInstnId/ns1:ClrSysMmbId/ns1:ClrSysId/ns1:Cd
Default value:	xdXDocument:GetDOM(&amp;quot;Payments_Current&amp;quot;)/dfs:myFields/dfs:dataFields/d:Payments_Current[count(current()/../preceding::ns1:PmtInf) + 1]/@DbtrAgtCd
Set in error:	/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:CdtTrfTxInf/ns1:CdtrAgt/ns1:FinInstnId/ns1:ClrSysMmbId/ns1:ClrSysId/ns1:Cd

Field:		/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:DbtrAgt/ns1:FinInstnId/ns1:ClrSysMmbId/ns1:MmbId
Default value:	xdXDocument:GetDOM(&amp;quot;Payments_Current&amp;quot;)/dfs:myFields/dfs:dataFields/d:Payments_Current[count(current()/../preceding::ns1:PmtInf) + 1]/@DbtrAgtMmbId
Set in error:	/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:CdtTrfTxInf/ns1:CdtrAgt/ns1:FinInstnId/ns1:ClrSysMmbId/ns1:MmbId

Field:		/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:CdtTrfTxInf/ns1:CdtrAcct/ns1:Id/ns1:Othr/ns1:Id
Default value:	xdXDocument:GetDOM(&amp;quot;Payments_Current&amp;quot;)/dfs:myFields/dfs:dataFields/d:Payments_Current[count(current()/../preceding::ns1:CdtTrfTxInf) + 1]/@CdtrAcctId
Set in error:	/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:CdtTrfTxInf/ns1:CdtrAgt/ns1:FinInstnId/ns1:Othr/ns1:Id

&lt;/pre&gt;

Note that I have 7 instances of repeating group CdtTrfTxInf in the form. The resulting xml is a little more complicated in that the first field set in error above, Cd, only occurs for the first instance of CdtTrfTxInf and the last one above, Id, does NOT occur for the first instance CdtTrfTxInf. The 2nd field above, MmbId, is always set in error.  The problem always occurs under the CdtrAgt tag.


I can&amp;#39;t send you my access table because that&amp;#39;s private but if you like I can send you a sample database?</description></item><item><title>Re: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119727.aspx</link><pubDate>Thu, 30 Aug 2018 16:26:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119727</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119727.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119727</wfw:commentRss><description>How odd. This doesn&amp;#39;t reproduce if I manually set the MmbId that currently has a default, or if I use a rule to set it. So, if I put these fields on the form, and preview the form, I won&amp;#39;t get a default value because I don&amp;#39;t have the DB that you are using, but if I manually enter info, the same-named fields in the other group aren&amp;#39;t being set. Generally, I use references a lot in my schemas, and I&amp;#39;ve not seen this before with same-named fields. If you overwrite the default in MmbId with a different value, do the same-named fields change as well?</description></item><item><title>Re: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119726.aspx</link><pubDate>Thu, 30 Aug 2018 16:03:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119726</guid><dc:creator>Selhurtsboys</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119726.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119726</wfw:commentRss><description>&lt;pre&gt;
/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:DbtrAgt/ns1:FinInstnId/ns1:ClrSysMmbId/ns1:MmbId

/ns1:Document/ns1:CstmrCdtTrfInitn/ns1:PmtInf/ns1:CdtTrfTxInf/ns1:CdtrAgt/ns1:FinInstnId/ns1:ClrSysMmbId/ns1:MmbId

&lt;/pre&gt;</description></item><item><title>Re: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119725.aspx</link><pubDate>Thu, 30 Aug 2018 15:45:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119725</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119725</wfw:commentRss><description>Can you point me to where in the schema the fields in question are? You can right click them in the fields pane and select copy XPath and paste the XPath into a reply.</description></item><item><title>Re: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119724.aspx</link><pubDate>Thu, 30 Aug 2018 15:39:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119724</guid><dc:creator>Selhurtsboys</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119724.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119724</wfw:commentRss><description>Hi Hilary,

I added the xsn file to my original post. I don&amp;#39;t have any rules at all.

Btw, there is at least one other field where I similarly set the default and the same thing happens, i.e. another field with the same name but in a different repeating group gets set.

Krgds, Simon</description></item><item><title>Re: Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119721.aspx</link><pubDate>Thu, 30 Aug 2018 15:09:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119721</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119721</wfw:commentRss><description>Do you have any rogue rules that might be causing this? Can you attach your form under the Options tab in a reply?</description></item><item><title>Setting defaults on some fields inadvertently sets similarly named fields in another repeating group</title><link>https://www.infopathdev.com:443/forums/thread/119715.aspx</link><pubDate>Thu, 30 Aug 2018 12:15:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119715</guid><dc:creator>Selhurtsboys</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119715.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119715</wfw:commentRss><description>I&amp;#39;m conufsed. I set the MmbId field to default to the value of a secondary data source (access table) using the following formula:
&lt;pre&gt;
xdXDocument:GetDOM(&amp;quot;Payments_Current&amp;quot;)/dfs:myFields/dfs:dataFields/d:Payments_Current[count(current()/../preceding::ns1:PmtInf) + 1]/@DbtrAgtMmbId

			&amp;lt;ns1:DbtrAgt&amp;gt;
				&amp;lt;ns1:FinInstnId&amp;gt;
					&amp;lt;ns1:BIC&amp;gt;&amp;lt;/ns1:BIC&amp;gt;
					&amp;lt;ns1:ClrSysMmbId&amp;gt;
						&amp;lt;ns1:ClrSysId&amp;gt;
							&amp;lt;ns1:Cd&amp;gt;CHBCC&amp;lt;/ns1:Cd&amp;gt;
						&amp;lt;/ns1:ClrSysId&amp;gt;
						&amp;lt;ns1:MmbId&amp;gt;233&amp;lt;/ns1:MmbId&amp;gt;
					&amp;lt;/ns1:ClrSysMmbId&amp;gt;
				&amp;lt;/ns1:FinInstnId&amp;gt;
			&amp;lt;/ns1:DbtrAgt&amp;gt;
&lt;/pre&gt; 
But I don&amp;#39;t set anything (default field is empty) for a similarly named field MmbId in a lower level (child) repeating group but when I run filler the same value appears in that field?
&lt;pre&gt; 
 				&amp;lt;ns1:CdtrAgt&amp;gt;
					&amp;lt;ns1:FinInstnId&amp;gt;
						&amp;lt;ns1:BIC&amp;gt;&amp;lt;/ns1:BIC&amp;gt;
						&amp;lt;ns1:ClrSysMmbId&amp;gt;
							&amp;lt;ns1:MmbId&amp;gt;233&amp;lt;/ns1:MmbId&amp;gt;
						&amp;lt;/ns1:ClrSysMmbId&amp;gt;
					&amp;lt;/ns1:FinInstnId&amp;gt;
				&amp;lt;/ns1:CdtrAgt&amp;gt;
&lt;/pre&gt;
How can this be and can anyone see what I&amp;#39;m doing worng?</description></item></channel></rss>