<?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: Repeating tables and Current()</title><link>https://www.infopathdev.com:443/forums/thread/31064.aspx</link><pubDate>Thu, 31 Jul 2008 12:22:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31064</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31064</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks to the wonderful Hilary Stoupa a solution has been found to this problem.&lt;/p&gt;
&lt;p&gt;The use of &lt;strong&gt;current()/&lt;/strong&gt; or &lt;strong&gt;current()/..&lt;/strong&gt; as described in the post by Greg Collins &lt;a href="http://www.infopathdev.com/forums/p/5493/20643.aspx#20643"&gt;http://www.infopathdev.com/forums/p/5493/20643.aspx#20643&lt;/a&gt; does not work with text boxes in IP 2003 but does with IP 2007.&lt;/p&gt;
&lt;p&gt;The solution can be found in this link&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;a href="http://www.infopathdev.com/blogs/matt/archive/2006/04/18/Automatically-Populate-Fields-from-a-Drop_2D00_Down-Selection.aspx"&gt;&lt;u&gt;&lt;font color="#0000ff" size="2"&gt;http://www.infopathdev.com/blogs/matt/archive/2006/04/18/Automatically-Populate-Fields-from-a-Drop_2D00_Down-Selection.aspx&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;Instead of using a formula in the text box to set the default value based on the DDL and a filter,&amp;nbsp;a&amp;nbsp;&lt;strong&gt;rule&lt;/strong&gt; is used for the DDL field that sets the value for the text box.&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Repeating tables and Current()</title><link>https://www.infopathdev.com:443/forums/thread/30775.aspx</link><pubDate>Thu, 24 Jul 2008 15:04:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30775</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30775</wfw:commentRss><description>&lt;p&gt;If your form is something you can share (I realize some companies have policies prohibiting such things) I&amp;#39;d be happy to take a look at it if you&amp;#39;d like to email me. Sometimes a second pair of eyes helps.&lt;/p&gt;</description></item><item><title>Re: Repeating tables and Current()</title><link>https://www.infopathdev.com:443/forums/thread/30759.aspx</link><pubDate>Thu, 24 Jul 2008 06:16:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30759</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30759</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes the checkbox &lt;strong&gt;Update this value when the result of the formula is recalculated &lt;/strong&gt;is&lt;strong&gt; &lt;/strong&gt;selected. I have tried it with the checkbox de-selected as well. I am very perplexed (to put it mildly), all of the forum posts, on this and other forums, say that it should work.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Gary&lt;/p&gt;</description></item><item><title>Re: Repeating tables and Current()</title><link>https://www.infopathdev.com:443/forums/thread/30735.aspx</link><pubDate>Wed, 23 Jul 2008 14:57:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30735</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30735</wfw:commentRss><description>&lt;p&gt;I would think that &lt;strong&gt;EWC-Code[Waste = current()/@Material_Category]&lt;/strong&gt; would work.... but I&amp;#39;m sure your&amp;#39;ve tried that. I find it very perplexing that your formula with current() works when you change the control type....I&amp;#39;m sure you do, too! You do have the checkbox &lt;strong&gt;Update this value when the result of the formula is recalculated &lt;/strong&gt;selected, right? &lt;/p&gt;</description></item><item><title>Re: Repeating tables and Current()</title><link>https://www.infopathdev.com:443/forums/thread/30723.aspx</link><pubDate>Wed, 23 Jul 2008 07:10:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30723</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30723</wfw:commentRss><description>&lt;p&gt;Hi Hilary&lt;/p&gt;
&lt;p&gt;The DDL is bound to &lt;strong&gt;@MaterialCategory&lt;/strong&gt; (main data source) and looks up values from the Waste field in EWC 13 (secondary data source).&lt;/p&gt;
&lt;p&gt;The text box, &lt;strong&gt;@EWC_No&lt;/strong&gt;, uses the formula &lt;strong&gt;EWC-Code[Waste = @Material_Category]&lt;/strong&gt; (XPath shown in original question) for the default value and is&amp;nbsp;bound to&amp;nbsp;the main data source.&lt;/p&gt;
&lt;p&gt;The value displayed in the text box is &lt;strong&gt;EWC-Code&lt;/strong&gt;, filtered from the Waste value in &lt;strong&gt;@Material_Category&lt;/strong&gt; (part of xml file shown below)&lt;/p&gt;&lt;font color="#008080"&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000"&gt;dataroot&lt;/font&gt;&lt;font color="#ff0000"&gt; xmlns:od&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;&lt;/font&gt;urn:schemas-microsoft-com:officedata&lt;font color="#0000ff"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#ff0000"&gt; generated&lt;/font&gt;&lt;font color="#0000ff"&gt;=&amp;quot;&lt;/font&gt;2008-06-13T14:34:53&lt;font color="#0000ff"&gt;&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000"&gt;EWC-13&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000"&gt;EWC-Code&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;13 01 01*&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000"&gt;EWC-Code&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000"&gt;Waste&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;hydraulic oils&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000"&gt;Waste&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000"&gt;Hazard-Code&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;A&lt;font color="#0000ff"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000"&gt;Hazard-Code&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000"&gt;EWC-13&lt;/font&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;The filter works fine. If I select &amp;#39;hydraulic oils&amp;#39; in the DDL, the text box displays &amp;#39;13 01 01*&amp;#39;&amp;nbsp; but uses the same selection as the first&amp;nbsp;row for all subsequent rows of the repeating table. I can get current() to work if I change the text box to a DDL.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;Thanks&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff"&gt;Gary&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Repeating tables and Current()</title><link>https://www.infopathdev.com:443/forums/thread/30716.aspx</link><pubDate>Wed, 23 Jul 2008 02:10:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30716</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30716</wfw:commentRss><description>&lt;p&gt;Hi, Gary:&lt;/p&gt;
&lt;p&gt;What field is the drop down list bound to? Not the values, but the list itself? Is @MaterialCategory from your main data source? Is Waste the field with the value you&amp;#39;d like to place, filtered, into @MaterialCategory? Is the formula in the default value for the text box bound to @MaterialCategory?&lt;/p&gt;
&lt;p&gt;Sorry for all the questions -- but a little more information would help....I&amp;#39;m sure you&amp;#39;ve searched the posts, but &lt;a href="http://www.infopathdev.com/forums/p/5493/20643.aspx#20643"&gt;this&lt;/a&gt; from Greg Collins is very helpful.&lt;/p&gt;</description></item><item><title>Repeating tables and Current()</title><link>https://www.infopathdev.com:443/forums/thread/30668.aspx</link><pubDate>Tue, 22 Jul 2008 11:24:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30668</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30668.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=30668</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have searched the forum and found numerous posts relating to this question but still can&amp;#39;t get it to work. I have an IP 2003 (SP2)form based on an Access DB with additional secondary datasources (xml files).&lt;/p&gt;
&lt;p&gt;The form has a repeating table with a drop down list box and a number of text boxes. The DDL gets a value from a secondary datasource (flat) and the first text box is populated with a corresponding value from the same datasource (filtered).&lt;/p&gt;
&lt;p&gt;When a row is inserted into the repeating table it takes the value for all subsequent text boxes as the first selection in the DDL.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;formula for the text box is:&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;xdXDocument:GetDOM(&amp;quot;EWC 13&amp;quot;)/dataroot/EWC-13/EWC-Code[../Waste = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:SWMP-0_Details/d:SWMP-2_Forecast_Waste_13/@Material_Category]&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;strong&gt;EWC-Code &lt;/strong&gt;and&lt;strong&gt; Waste&lt;/strong&gt; are fields in the secondary datasource &lt;strong&gt;(EWC 13)&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;strong&gt;@Material Category&lt;/strong&gt; is the text box&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I have tried &lt;strong&gt;current()/&lt;/strong&gt; and &lt;strong&gt;current()/..&lt;/strong&gt; in all possible position on the right hand side of the equation (and the left side) and the result is a blank text box.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Has anyone any suggestions.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Thanks&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Gary&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>