<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to get the value of a text field that is unknown at design time</title><link>https://www.infopathdev.com:443/forums/thread/79641.aspx</link><pubDate>Tue, 19 Jun 2012 13:07:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79641</guid><dc:creator>sheilaA</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79641</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;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;It should be&amp;nbsp;possible to pull this off with a single rule action and no conditions.&amp;nbsp; As you&amp;#39;ve discovered, concat(&amp;quot;../my:comm_1text/my:comm_&amp;quot;, .) won&amp;#39;t work because that just produces the text value &lt;strong&gt;../my:comm_1text/my:comm_X&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;How about something like this:&lt;/p&gt;&lt;p&gt;../my:comm1_text/*[local-name() = concat(&amp;#39;comm_&amp;#39;, current())]&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Using a single rule is exactly what I am looking for.&amp;nbsp; This looks promising, I&amp;#39;ll give it a try.&lt;/p&gt;</description></item><item><title>Re: How to get the value of a text field that is unknown at design time</title><link>https://www.infopathdev.com:443/forums/thread/79638.aspx</link><pubDate>Tue, 19 Jun 2012 12:15:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79638</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79638</wfw:commentRss><description>&lt;p&gt;It should be&amp;nbsp;possible to pull this off with a single rule action and no conditions.&amp;nbsp; As you&amp;#39;ve discovered, concat(&amp;quot;../my:comm_1text/my:comm_&amp;quot;, .) won&amp;#39;t work because that just produces the text value &lt;strong&gt;../my:comm_1text/my:comm_X&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;How about something like this:&lt;/p&gt;&lt;p&gt;../my:comm1_text/*[local-name() = concat(&amp;#39;comm_&amp;#39;, current())]&lt;/p&gt;</description></item><item><title>Re: How to get the value of a text field that is unknown at design time</title><link>https://www.infopathdev.com:443/forums/thread/79625.aspx</link><pubDate>Tue, 19 Jun 2012 07:12:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79625</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79625</wfw:commentRss><description>&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;FLOAT:none;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;Created a new Infopath 2010 form. &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;Inserted option button (with default &amp;quot;Number of options buttons to insert;&amp;quot; 3) , named it &amp;quot;Options&amp;quot;&lt;/div&gt;
&lt;div style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;In addition to textbox FieldA, inserted 3 textboxes, named them:&lt;/div&gt;
&lt;div style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;
&lt;ul&gt;
&lt;li&gt;comm_1&lt;/li&gt;
&lt;li&gt;comm_2&lt;/li&gt;
&lt;li&gt;comm_3&lt;/li&gt;&lt;/ul&gt;
&lt;div&gt;&lt;b&gt;This is to repeat for each option:&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;
&lt;blockquote style="BORDER-BOTTOM-STYLE:none;PADDING-BOTTOM:0px;BORDER-RIGHT-STYLE:none;WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;MARGIN:0px 0px 0px 40px;PADDING-LEFT:0px;PADDING-RIGHT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;BORDER-TOP-STYLE:none;LETTER-SPACING:normal;BORDER-LEFT-STYLE:none;WORD-SPACING:0px;PADDING-TOP:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;border-image:initial;"&gt;
&lt;div&gt;
&lt;div&gt;With focus on Options, on ribbon&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&amp;quot;Add rule&amp;quot; (&lt;/b&gt;later&lt;b&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&amp;quot;Manage rules&amp;quot;)&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;In &amp;quot;Rules&amp;quot; pane, New --&amp;gt; Action&lt;br /&gt;Condition: Options =&lt;font size="6"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;1&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;(in last drop-down-lis choose &amp;quot;Type a number...&amp;quot;&amp;nbsp;)&lt;br /&gt;Rule type: Action&lt;/blockquote&gt;
&lt;div style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;FONT:small arial;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"&gt;
&lt;blockquote style="BORDER-BOTTOM-STYLE:none;PADDING-BOTTOM:0px;BORDER-RIGHT-STYLE:none;MARGIN:0px 0px 0px 40px;PADDING-LEFT:0px;PADDING-RIGHT:0px;BORDER-TOP-STYLE:none;BORDER-LEFT-STYLE:none;PADDING-TOP:0px;border-image:initial;"&gt;
&lt;div&gt;Run these actions&amp;quot; --&amp;gt; Add --&amp;gt; in opened &amp;quot;Rule Details&amp;quot; dialog:&lt;/div&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;ul&gt;
&lt;li&gt;Action: --&amp;gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;Set a field&amp;#39;s value&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Field &amp;nbsp;--&amp;gt; FieldA&lt;/li&gt;
&lt;li&gt;Pressed&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;fx&lt;/b&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;against &amp;quot;&lt;b&gt;Value:&amp;quot;&lt;/b&gt;&amp;nbsp; textbox &amp;nbsp;--&amp;gt; &amp;quot;Insert Field or Group...&amp;quot; --&amp;gt; &amp;nbsp;comm_&lt;font size="6"&gt;1&lt;/font&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Add new rule for &amp;quot;Options&amp;quot; by &amp;quot;&lt;b&gt;This is to repeat for each option:&lt;/b&gt;&amp;nbsp;&amp;quot; procedure with corresponding minor adjustments of digit&amp;nbsp;:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote style="BORDER-BOTTOM-STYLE:none;PADDING-BOTTOM:0px;BORDER-RIGHT-STYLE:none;MARGIN:0px 0px 0px 40px;PADDING-LEFT:0px;PADDING-RIGHT:0px;BORDER-TOP-STYLE:none;BORDER-LEFT-STYLE:none;PADDING-TOP:0px;border-image:initial;"&gt;
&lt;div&gt;
&lt;blockquote style="BORDER-BOTTOM-STYLE:none;PADDING-BOTTOM:0px;BORDER-RIGHT-STYLE:none;MARGIN:0px 0px 0px 40px;PADDING-LEFT:0px;PADDING-RIGHT:0px;BORDER-TOP-STYLE:none;BORDER-LEFT-STYLE:none;PADDING-TOP:0px;border-image:initial;"&gt;
&lt;div&gt;With focus on Options, on ribbon&amp;nbsp;&lt;b&gt;&amp;quot;Add rule&amp;quot; (&lt;/b&gt;later&lt;b&gt;&amp;nbsp;&amp;quot;Manage rules&amp;quot;)&lt;/b&gt;&lt;/div&gt;In &amp;quot;Rules&amp;quot; pane, New --&amp;gt; Action&lt;br /&gt;Condition: Options =&lt;font size="6"&gt;&amp;nbsp;2&amp;nbsp;&lt;/font&gt;(in last drop-down-lis choose &amp;quot;Type a number...&amp;quot;&amp;nbsp;)&lt;br /&gt;Rule type: Action&lt;/blockquote&gt;
&lt;div&gt;
&lt;blockquote style="BORDER-BOTTOM-STYLE:none;PADDING-BOTTOM:0px;BORDER-RIGHT-STYLE:none;MARGIN:0px 0px 0px 40px;PADDING-LEFT:0px;PADDING-RIGHT:0px;BORDER-TOP-STYLE:none;BORDER-LEFT-STYLE:none;PADDING-TOP:0px;border-image:initial;"&gt;Run these actions&amp;quot; --&amp;gt; Add --&amp;gt; in opened &amp;quot;Rule Details&amp;quot; dialog:&lt;/blockquote&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;Action: --&amp;gt;&amp;nbsp;&lt;b&gt;Set a field&amp;#39;s value&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Field &amp;nbsp;--&amp;gt; FieldA&lt;/li&gt;
&lt;li&gt;Pressed&amp;nbsp;&lt;b&gt;fx&lt;/b&gt;&amp;nbsp;against &amp;quot;&lt;b&gt;Value:&amp;quot;&lt;/b&gt;&amp;nbsp; textbox &amp;nbsp;--&amp;gt; &amp;quot;Insert Field or Group...&amp;quot; --&amp;gt; &amp;nbsp;comm_&lt;font size="6"&gt;2&lt;/font&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;div&gt;Add a new rule by the same procedure &amp;quot;&lt;b&gt;This is to repeat for each option:&lt;/b&gt;&amp;nbsp;&amp;quot; with digit, 3, then 4, then n....&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Publish, Run and enjoy&lt;/div&gt;&lt;/div&gt;</description></item><item><title>How to get the value of a text field that is unknown at design time</title><link>https://www.infopathdev.com:443/forums/thread/79609.aspx</link><pubDate>Mon, 18 Jun 2012 18:31:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79609</guid><dc:creator>sheilaA</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79609.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79609</wfw:commentRss><description>&lt;p&gt;I am trying to write a rule that sets the value of a field with another field&amp;#39;s value that is not known at design time.

&lt;/p&gt;&lt;p&gt;&amp;nbsp;Depending on which option is selected (1,2,...) I want to select the value from fields: comm_1, comm_2, comm_3,....., comm_n and put it into Field A


&lt;/p&gt;&lt;p&gt;So I have 3 fields involved in this rule.
&lt;/p&gt;&lt;p&gt;
#1 The option group field that the user will select                &amp;lt;--  Known (this is the field the rule is set on)
&lt;/p&gt;&lt;p&gt;#2 The field that will get the value                                        &amp;lt;--  Known
&lt;/p&gt;&lt;p&gt;#3 The field that has the value I need to set #2 above        &amp;lt;--  Unknown at design time

&lt;/p&gt;&lt;p&gt;I tried this and it does not work:

    &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; concat(&amp;quot;../my:comm_1text/my:comm_&amp;quot;, .)


&lt;/p&gt;&lt;p&gt;When I select option 2, I get this value in Field A:&lt;/p&gt;&lt;p&gt;

   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ../my:comm_1text/my:comm_2    &amp;lt;=== this is the name of the field that has the value.
&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;</description></item></channel></rss>