<?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: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67997.aspx</link><pubDate>Fri, 01 Jul 2011 19:49:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67997</guid><dc:creator>joelundberg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67997</wfw:commentRss><description>&lt;p&gt;It works great.&amp;nbsp; Thank you very much!!&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67996.aspx</link><pubDate>Fri, 01 Jul 2011 19:18:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67996</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67996.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67996</wfw:commentRss><description>&lt;p&gt;Sorry, that should have been&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;test&amp;quot;)/phrases/phrase[@value = current()/dfs:dataFields/d:RATABLE8D/@REASONCODE]&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67992.aspx</link><pubDate>Fri, 01 Jul 2011 17:31:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67992</guid><dc:creator>joelundberg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67992</wfw:commentRss><description>&lt;p&gt;When I change it and click on verify formula it give me: @value&amp;quot; does not point to a valid location path of a field or group.&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67988.aspx</link><pubDate>Fri, 01 Jul 2011 16:16:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67988</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67988</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I believe the&amp;nbsp;XPath, when expanded, should look like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;test&amp;quot;)/phrases[@value = current()/dfs:dataFields/d:RATABLE8D/@REASONCODE]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;with just @value after the opening bracket.&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67978.aspx</link><pubDate>Fri, 01 Jul 2011 13:28:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67978</guid><dc:creator>joelundberg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67978</wfw:commentRss><description>&lt;div class="e"&gt;
&lt;div style="TEXT-INDENT:-2em;MARGIN-LEFT:1em;" class="c"&gt;&lt;a class="b"&gt;&lt;strong&gt;&lt;font color="#ff0000" face="Courier New"&gt;-&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;It pulls all the phrases from my xml file. The xml is below. It will list phrase 2,4,&amp;amp;11 in the expression box field. It should be pulling only 11.&lt;/div&gt;
&lt;div style="TEXT-INDENT:-2em;MARGIN-LEFT:1em;" class="c"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;phrases&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phrase value=&amp;quot;2&amp;quot;&amp;gt;The phrase for ALL&amp;lt;/phrase&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phrase value=&amp;quot;4&amp;quot;&amp;gt;The phrase for 2&amp;lt;/phrase&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phrase value=&amp;quot;11&amp;quot;&amp;gt;hello&amp;lt;/phrase&amp;gt;&lt;br /&gt;&amp;lt;/phrases&amp;gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style="TEXT-INDENT:-2em;MARGIN-LEFT:1em;" class="c"&gt;Here is my XPath statement:&lt;/div&gt;
&lt;div style="TEXT-INDENT:-2em;MARGIN-LEFT:1em;" class="c"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xdXDocument:GetDOM(&amp;quot;test&amp;quot;)/phrases[xdXDocument:GetDOM(&amp;quot;test&amp;quot;)/phrases/phrase/@value = current()/dfs:dataFields/d:RATABLE8D/@REASONCODE]&lt;/div&gt;&lt;/div&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67969.aspx</link><pubDate>Fri, 01 Jul 2011 04:10:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67969</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67969</wfw:commentRss><description>&lt;p&gt;What do you mean when you say it pulls all the phrase values?&amp;nbsp; Could you attach a screenshot to this thread?&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67961.aspx</link><pubDate>Thu, 30 Jun 2011 20:15:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67961</guid><dc:creator>joelundberg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67961</wfw:commentRss><description>&lt;p&gt;That worked but it pulls all the phrase values from the xml file I created. Any ideas?&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67956.aspx</link><pubDate>Thu, 30 Jun 2011 19:11:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67956</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67956</wfw:commentRss><description>&lt;p&gt;You should use the Select field... button to pick the &lt;strong&gt;phrase&lt;/strong&gt; field from the data source, then click &lt;em&gt;Show XPath&lt;/em&gt; to add the [@value = current()] part.&lt;/p&gt;
&lt;p&gt;I made a mistake in the XPath in my previous post.&amp;nbsp; It should just be:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;/phrases/phrase[@value = current()/&lt;strong&gt;dbField&lt;/strong&gt;]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Naturally, you would replace &lt;strong&gt;dbField&lt;/strong&gt; with the actual name of the field where that enumeration is stored.&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67949.aspx</link><pubDate>Thu, 30 Jun 2011 17:47:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67949</guid><dc:creator>joelundberg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67949</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy.&lt;/p&gt;
&lt;p&gt;I have created the secondary data source but I am having trouble with the XPath. This is all pretty new to me. What part of the XPath statement has to show my data? I keep getting this formula error (&amp;quot;/phrases/phrase/@value&amp;quot;does not point to a valid location path of a field or group.)&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67945.aspx</link><pubDate>Thu, 30 Jun 2011 16:51:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67945</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67945</wfw:commentRss><description>&lt;p&gt;There are two things you can do here:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Bind the field to a Dropdown Box and set up the combobox to have the appropriate display values correspond to all of the numerical &amp;quot;value&amp;quot; values.&amp;nbsp; You can make the dropdown readonly if you don&amp;#39;t want anyone changing the value.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Create a secondary data source from an XML file that has all of the phrases like this:&lt;br /&gt;&amp;lt;phrases&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phrase value=&amp;quot;1&amp;quot;&amp;gt;The phrase for 1&amp;lt;/phrase&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phrase value=&amp;quot;2&amp;quot;&amp;gt;The phrase for 2&amp;lt;/phrase&amp;gt;&lt;br /&gt;&amp;lt;/phrases&amp;gt;&lt;br /&gt;And then use an Expression Box (called Calculated Value in IP 2010) to show the corresponding value using an XPath like this:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /phrases/phrase[@value = current()/dbField]/phrase&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67936.aspx</link><pubDate>Thu, 30 Jun 2011 15:12:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67936</guid><dc:creator>joelundberg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67936.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67936</wfw:commentRss><description>&lt;p&gt;The phrases are not in a column. The column consists of the numbers (base enums). Inside of the properties for the numbers are set values that the numbers are tied to.&lt;/p&gt;</description></item><item><title>Re: Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67907.aspx</link><pubDate>Wed, 29 Jun 2011 23:43:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67907</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67907.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67907</wfw:commentRss><description>&lt;p&gt;When you set up the SQL receive connection, did you include the &amp;quot;phrase&amp;quot; column?&lt;/p&gt;</description></item><item><title>Change a value in a field.</title><link>https://www.infopathdev.com:443/forums/thread/67890.aspx</link><pubDate>Wed, 29 Jun 2011 21:04:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67890</guid><dc:creator>joelundberg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67890.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67890</wfw:commentRss><description>&lt;p&gt;I am pulling in data from a SQL server. I have a base enum that consists of about 25 values. When I query on an item in InfoPath it will only give the numeric value of the base enum (I want it to give me the phrase that is tied to it.) I have tried adding rules with conditions but I am having no luck. Any Ideas????&lt;/p&gt;</description></item></channel></rss>