<?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: Noob Question: about Textbox in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/69346.aspx</link><pubDate>Tue, 16 Aug 2011 22:33:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69346</guid><dc:creator>Lockdown</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69346.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69346</wfw:commentRss><description>&lt;p&gt;Ya, it definitely looks like you have to use current(). This is the way I used it though, it may be of some help. &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Specifications&amp;quot;)/Specifications/FlatFileSpecs/CCR/Header/RecordID/Description[current()/@PmtMethod = &amp;quot;CCR&amp;quot;] &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;So yours will looks something like this. &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;Query for ITEM_TYPE&amp;quot;[current()/ITEM_ID = ABC] | &amp;quot;Query for ITEM_TYPE&amp;quot;[current()/ITEM_ID = DEF]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Post the function you are using to populated the ITEM_TYPE text box.&lt;/p&gt;</description></item><item><title>Noob Question: about Textbox in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/69245.aspx</link><pubDate>Mon, 15 Aug 2011 09:38:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69245</guid><dc:creator>spider</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69245.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69245</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am working with infopath 2003 and access 2003. The acces database contains tables for both recieving data and for sending data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My problem is that: &lt;/p&gt;
&lt;p&gt;1) My infopath form has a 2 textboxes. One&amp;nbsp; (ITEM_ID) &amp;nbsp;is used by the user to type in the data. The other (ITEM_TYPE) is automatically populated from another ACCESS table. Each Item ID has a one-to-one relation with the ITEM_TYPE.&lt;/p&gt;
&lt;p&gt;2) Normally, a user adds 3 ITEM_IDs and hence the need to use a repeating table. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;3) When&amp;nbsp;I input the first ITEM_ID, the infopath&amp;nbsp;form queries the ACCESS Table and fills in the ITEM_TYPE into the second textbox automatically. so far so good.&lt;/p&gt;
&lt;p&gt;4) When I input the second or third ITEM_ID, the form queries the ACCESS TABLE, but still uses the same ITEM_TYPE from the first query&amp;nbsp;into the second textbox.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It Looks like this&lt;/p&gt;
&lt;p&gt;------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Item_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item_Type&lt;/p&gt;
&lt;p&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc&lt;/p&gt;
&lt;p&gt;DEF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------&lt;/p&gt;
&lt;p&gt;It should look like this:&lt;/p&gt;
&lt;p&gt;----------------------------------------------------&lt;/p&gt;
&lt;p&gt;Item_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item_Type&lt;/p&gt;
&lt;p&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc&lt;/p&gt;
&lt;p&gt;DEF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-------------------------------------------------------&lt;/p&gt;
&lt;p&gt;I have been reading around and know that there is something called a Current() function, but I cannot get it to work.&amp;nbsp; How can I force infopath to throw out all information from the previous ITEM&amp;nbsp;query before it proceeds with the second query.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;spider&lt;/p&gt;</description></item></channel></rss>