<?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: Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71440.aspx</link><pubDate>Wed, 26 Oct 2011 18:40:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71440</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71440.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71440</wfw:commentRss><description>&lt;p&gt;current() is the node that you are currently located&amp;nbsp;at - so, since your expression box is inside a repeating table (bound to a repeating node) - it is the current instance of the node. &lt;a href="http://blogs.msdn.com/b/infopath/archive/2004/09/13/228881.aspx"&gt;Here&amp;#39;s&lt;/a&gt; a link to a blog post that explains it a bit better. &lt;/p&gt;</description></item><item><title>Re: Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71439.aspx</link><pubDate>Wed, 26 Oct 2011 18:31:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71439</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71439</wfw:commentRss><description>&lt;p&gt;It worked. Thanks so much.&lt;/p&gt;
&lt;p&gt;So what does Current() mean - Does it get current value&amp;nbsp;of fk_status?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71437.aspx</link><pubDate>Wed, 26 Oct 2011 18:18:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71437</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71437</wfw:commentRss><description>&lt;p&gt;Is @fk_review_status in the same repeating table that you are putting the expression box in?&lt;/p&gt;
&lt;p&gt;If so, this may work:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Review Status&amp;quot;)/dfs:myFields/dfs:dataFields/d:tbl_review_status[@pk_review_status = current()/@fk_review_status]/@status_text&lt;/p&gt;
&lt;p&gt;But it is hard to know without seeing your form. You can attach a copy of your template to the Options tab if you&amp;#39;d like someone to take a look.&lt;/p&gt;</description></item><item><title>Re: Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71435.aspx</link><pubDate>Wed, 26 Oct 2011 18:12:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71435</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71435</wfw:commentRss><description>&lt;p&gt;Yes @fk_review_status&amp;nbsp; is in Main data source. I&amp;#39;m using 2003 (Copy xPath is not available). Yes expression box is in the same form in a repeating table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71433.aspx</link><pubDate>Wed, 26 Oct 2011 17:51:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71433</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71433.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71433</wfw:commentRss><description>&lt;p&gt;Where is @fk_review_status located in your main data source? Can you right click on it and select &amp;quot;Copy XPath&amp;quot;? (IP 2007 &amp;amp; 2010)&lt;/p&gt;
&lt;p&gt;Where are you placing your expression box on your form? Inside a section? A repeating section or table? &lt;/p&gt;</description></item><item><title>Re: Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71432.aspx</link><pubDate>Wed, 26 Oct 2011 17:43:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71432</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71432.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71432</wfw:commentRss><description>&lt;p&gt;I tried the above.&amp;nbsp;But I get&amp;nbsp;following error message:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;quot;xdXDocument:GetDOM(&amp;quot;Review Status&amp;quot;)/dfs:myFields/dfs:dataFields/d:tbl_review_status/@fk_review_status&amp;quot; does not point to a valid location path of a field or group.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71425.aspx</link><pubDate>Wed, 26 Oct 2011 16:37:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71425</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71425.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71425</wfw:commentRss><description>&lt;p&gt;Looks like it should be this:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Review Status&amp;quot;)/dfs:myFields/dfs:dataFields/d:tbl_review_status[@pk_review_status = @fk_review_status]/@status_text&lt;/p&gt;</description></item><item><title>Store List value (not ID) in an expression box</title><link>https://www.infopathdev.com:443/forums/thread/71421.aspx</link><pubDate>Wed, 26 Oct 2011 15:49:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71421</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71421.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71421</wfw:commentRss><description>&lt;p&gt;I have a drop-down list bound to secondary data source and displaying value, but stores ID. How would I store the actual value in an Expression box? Is it possible to achieve this?&amp;nbsp; I used the following formula in expression box but doesn&amp;#39;t seem to work:&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;xdXDocument:GetDOM(&amp;quot;Review Status&amp;quot;)/dfs:myFields/dfs:dataFields/d:tbl_review_status/@status_text[@pk_review_status = @fk_review_status]&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Note: status_text and pk_review_status&amp;nbsp;are from secondary data source&lt;/p&gt;
&lt;p&gt;fk_review_status is in the Main connection (drop down field)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please let me know if above formula is incorrect.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Stara&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>