<?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: Possible to reference the value of a field in a group (x) whose name matches a string (y)?</title><link>https://www.infopathdev.com:443/forums/thread/93673.aspx</link><pubDate>Tue, 15 Oct 2013 14:34:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93673</guid><dc:creator>mauledbyjesus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93673</wfw:commentRss><description>So close I can feel it! :D &lt;br /&gt;&lt;br /&gt;&lt;strike&gt; I get an &amp;quot;a number is required&amp;quot; error when validating the formula. I presume it is trying to perform a multiplication operation because of the asterix?&lt;/strike&gt;&lt;br /&gt;&lt;br /&gt;I was missing an end slash after Role.</description></item><item><title>Re: Possible to reference the value of a field in a group (x) whose name matches a string (y)?</title><link>https://www.infopathdev.com:443/forums/thread/93596.aspx</link><pubDate>Thu, 10 Oct 2013 14:17:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93596</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93596</wfw:commentRss><description>&lt;p&gt;../my:Role/*[local-name(.) = ../../../my:field2] I think....&lt;/p&gt;</description></item><item><title>Re: Possible to reference the value of a field in a group (x) whose name matches a string (y)?</title><link>https://www.infopathdev.com:443/forums/thread/93580.aspx</link><pubDate>Wed, 09 Oct 2013 20:08:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93580</guid><dc:creator>mauledbyjesus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93580.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93580</wfw:commentRss><description>&lt;div&gt;
			Thanks for the replies everyone! The sample logic works exactly as I needed! In porting it, everything works when all fields are all in the same group.&lt;/div&gt;
		&lt;div&gt;
			&amp;nbsp;&lt;/div&gt;
		&lt;div&gt;
			How would I need to alter &lt;code&gt;*[local-name(.) = field2]&lt;/code&gt; &amp;nbsp;to explicitly define a group to check for a field that matches the value of &amp;quot;field2&amp;quot;? In my case, field2, field5, and field1/3/4 are in different groups on the same data connection.&amp;nbsp;&lt;/div&gt;
		&lt;div&gt;
			&amp;nbsp;&lt;/div&gt;
		&lt;div&gt;
			My connection layout using your example fields:&lt;/div&gt;
		&lt;div&gt;
			&amp;nbsp;&lt;/div&gt;
		&lt;ul&gt;
			&lt;li&gt;
				ui (group)
				&lt;ul&gt;
					&lt;li&gt;
						field2&lt;/li&gt;
					&lt;li&gt;
						QAItemCounts&amp;nbsp;(group)
						&lt;ul&gt;
							&lt;li&gt;
								Role&amp;nbsp;(group)
								&lt;ul&gt;
									&lt;li&gt;
										field1&lt;/li&gt;
									&lt;li&gt;
										field3&lt;/li&gt;
									&lt;li&gt;
										field4&lt;/li&gt;
								&lt;/ul&gt;
							&lt;/li&gt;
							&lt;li&gt;
								field5&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;</description></item><item><title>Re: Possible to reference the value of a field in a group (x) whose name matches a string (y)?</title><link>https://www.infopathdev.com:443/forums/thread/93570.aspx</link><pubDate>Wed, 09 Oct 2013 15:44:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93570</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93570</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Fun! See attached sample. Enter the name of a field (field1, field3, field4) in the top text box and the value should show up in the bottom text box.&lt;/p&gt;</description></item><item><title>Re: Possible to reference the value of a field in a group (x) whose name matches a string (y)?</title><link>https://www.infopathdev.com:443/forums/thread/93565.aspx</link><pubDate>Wed, 09 Oct 2013 14:14:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93565</guid><dc:creator>wilkies0106aw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93565</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Maybe I need more information on the types on controls and data you are trying to add up.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Yet in field3 why not set its default value to field1+field2 ?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I did a test where by all 3 fields: field1, field2 and field 3 were text fields.&lt;/p&gt;&lt;p&gt;Field 3 equalled field1+field2&lt;/p&gt;</description></item><item><title>Possible to reference the value of a field in a group (x) whose name matches a string (y)?</title><link>https://www.infopathdev.com:443/forums/thread/93555.aspx</link><pubDate>Wed, 09 Oct 2013 07:02:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93555</guid><dc:creator>mauledbyjesus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93555</wfw:commentRss><description>&lt;p&gt;
			Infopath2010 - Is there a way to set the value of &amp;quot;field3&amp;quot; to the value of the(or a) field in &amp;quot;group1&amp;quot; whose name matches the value of &amp;quot;field2&amp;quot; in the following scenario?&lt;/p&gt;
		&lt;ul&gt;
			&lt;li&gt;
				&lt;strong&gt;Data connection&lt;/strong&gt;: data
				&lt;ul&gt;
					&lt;li&gt;
						&lt;strong&gt;Group&lt;/strong&gt;: group1
						&lt;ul&gt;
							&lt;li&gt;
								&lt;strong&gt;Field&lt;/strong&gt;: field1
								&lt;ul&gt;
									&lt;li&gt;
										Value: 1&lt;/li&gt;
								&lt;/ul&gt;
							&lt;/li&gt;
							&lt;li&gt;
								&lt;strong&gt;Field&lt;/strong&gt;: field2
								&lt;ul&gt;
									&lt;li&gt;
										Value: &amp;quot;field1&amp;quot;&lt;/li&gt;
								&lt;/ul&gt;
							&lt;/li&gt;
							&lt;li&gt;
								&lt;strong&gt;Field&lt;/strong&gt;: field3
								&lt;ul&gt;
									&lt;li&gt;
										Value: NULL&lt;/li&gt;
								&lt;/ul&gt;
							&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
		&lt;div&gt;
			&amp;nbsp;&lt;/div&gt;
		&lt;div&gt;
			I&amp;#39;m trying to do some on-the-fly addition based on what users are choosing from 4 different controls. The value of each potential choice is already stored in a group of fields. A formula/filter that could reference them dynamically would allow me to use a single rule instead of 12. Wishful thinking?&lt;/div&gt;</description></item></channel></rss>