<?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: Current() works in Expression box but not in Text box???</title><link>https://www.infopathdev.com:443/forums/thread/27857.aspx</link><pubDate>Thu, 10 Apr 2008 19:03:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27857</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27857</wfw:commentRss><description>&lt;p&gt;Do a search on&amp;nbsp;IPD for current() this is the function which will allow you to access the repeating record you are selecting.&amp;nbsp; The syntax has to bbe correct for it to work, i would refer to some samples. You should be able to use it in your set field action.&lt;/p&gt;</description></item><item><title>Current() works in Expression box but not in Text box???</title><link>https://www.infopathdev.com:443/forums/thread/27851.aspx</link><pubDate>Thu, 10 Apr 2008 18:22:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27851</guid><dc:creator>drives</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27851</wfw:commentRss><description>&lt;p&gt;I am using a repeating table with two text box controls. First one is for Part ID and the second one populates the Part Description out of a secondary data source based on what was typed in for Part ID.&lt;/p&gt;
&lt;p&gt;
&lt;table class="xdRepeatingTable msoUcTable" style="TABLE-LAYOUT:fixed;WIDTH:277px;BORDER-TOP-STYLE:none;BORDER-RIGHT-STYLE:none;BORDER-LEFT-STYLE:none;BORDER-COLLAPSE:collapse;WORD-WRAP:break-word;BORDER-BOTTOM-STYLE:none;" class="xdRepeatingTable msoUcTable"&gt;




&lt;tr&gt;
&lt;td class=""&gt;
&lt;div&gt;&lt;strong&gt;Part Number&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td class=""&gt;
&lt;div&gt;&lt;strong&gt;Material Description&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr style="MIN-HEIGHT:25px;"&gt;
&lt;td class=""&gt;&amp;lt;part ID&amp;gt;&lt;/td&gt;
&lt;td class=""&gt;&lt;span class="xdTextBox" style="WIDTH:100%;"&gt;&lt;span class="xdTextBox" style="WIDTH:100%;"&gt;&amp;lt;part description&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr style="MIN-HEIGHT:26px;"&gt;
&lt;td class=""&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td class=""&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This works just fine using filters, but after the first line in the repeating&amp;nbsp;table it will not work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The default value in the second text&amp;nbsp;box is set to @Part description[/.../fieldXXX = @Part ID]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;according to microsoft the fix is to change this to @Part description[current()/fieldXXX = @Part ID]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This works great in an expression box but NOT in a text Box.&lt;/p&gt;
&lt;p&gt;There is no error, only an empty text box after i fill in the Part ID&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any Ideas?&lt;/p&gt;</description></item></channel></rss>