<?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: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25969.aspx</link><pubDate>Sun, 27 Jan 2008 04:05:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25969</guid><dc:creator>aznative</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25969</wfw:commentRss><description>&lt;p&gt;Edit:&amp;nbsp; I thought it took care of it...but it didn&amp;#39;t...I was just careless with my testing.&lt;/p&gt;
&lt;p&gt;Edit 2: Thanks Adam...I did get it to work.&amp;nbsp; I had to put the current statement on the left side of the = sign like so:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;ProductList&amp;quot;)/dfs:myFields/dfs:dataFields/d:ProductList/@MFG[current()/../my:PN = ../@PN]&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Josh&lt;/p&gt;</description></item><item><title>Re: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25963.aspx</link><pubDate>Sun, 27 Jan 2008 00:08:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25963</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25963</wfw:commentRss><description>&lt;p&gt;OK&lt;/p&gt;&lt;p&gt;Looking again&lt;/p&gt;&lt;p&gt;What I used to do in 2003 was set up the RHS of the expression to be &amp;#39;= current()/@PN&amp;#39;&amp;nbsp; and that would work fine.&amp;nbsp; As far as remember the /myPN didn&amp;#39;t occur in the old object model in 2003 and only in 2007 hence my question.&lt;/p&gt;&lt;p&gt;Cheers&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25959.aspx</link><pubDate>Sat, 26 Jan 2008 20:53:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25959</guid><dc:creator>aznative</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25959.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25959</wfw:commentRss><description>&lt;p&gt;No I am using Office 2003...with Infopath 2003 SP2.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Josh&lt;/p&gt;</description></item><item><title>Re: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25957.aspx</link><pubDate>Sat, 26 Jan 2008 19:06:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25957</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25957</wfw:commentRss><description>&lt;p&gt;OK&lt;/p&gt;&lt;p&gt;Are you using Office 2007.&amp;nbsp; If so the current function is applied invisibly and you do not need to specifiy in the operating model.&lt;/p&gt;&lt;p&gt;Cheers&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25954.aspx</link><pubDate>Sat, 26 Jan 2008 00:21:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25954</guid><dc:creator>aznative</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25954</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Adam,&lt;/p&gt;&lt;p&gt;If I choose Edit XPath under the rule I am able to get the XML referencing you mentioned.&amp;nbsp; Here is what I get:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;ProductList&amp;quot;)/dfs:myFields/dfs:dataFields/d:ProductList/@MFG[../@PN = xdXDocument:get-DOM()/my:myFields/my:Parts/my:PN]&lt;/p&gt;&lt;p&gt;&amp;nbsp;I added the current() function like so:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;ProductList&amp;quot;)/dfs:myFields/dfs:dataFields/d:ProductList/@MFG[../@PN = current()/my:myFields/my:Parts/my:PN]&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now the MFG field comes up blank no matter which PN I choose.&amp;nbsp; I tried different modifying it slightly be doing&lt;/p&gt;&lt;p&gt;= current()/my:Parts/my:PN] &lt;br /&gt;&lt;/p&gt;&lt;p&gt;and&lt;/p&gt;&lt;p&gt;= current()/my:PN]&lt;br /&gt;&lt;br /&gt;but in all variations the MFG still comes up blank.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Josh&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25944.aspx</link><pubDate>Fri, 25 Jan 2008 22:23:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25944</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25944</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;One thing you can try is the current() bit of code if you are using InfoPath 2003.&amp;nbsp; This behaviour does not seem to occur in InfoPath 2007 due to a redesign of the Object Model.&amp;nbsp; To add it in 2003, go into the rule that sets the MFG field where is says something like:&lt;/p&gt;&lt;p&gt;where PN (in database) is equal to PN (on form).&amp;nbsp; In the left hand drop-down box click on the drop-down and select &amp;quot;the expression&amp;quot;.&amp;nbsp; This will bring up a string of XML referencing.&amp;nbsp; You need to search for the &amp;quot;=&amp;quot; sign in the statement.&amp;nbsp; To the right of that is a string that starts off something like &lt;/p&gt;&lt;p&gt;xdXDocument:get-DOM()/my:myFields/@PN&amp;nbsp;&lt;/p&gt;&lt;p&gt;now we try the current function as follows: where @PN = current()/@PN.&amp;nbsp; Then check if it works.&amp;nbsp; If it doesn&amp;#39;t then your form data may be relational so you have to include the path to the field so the line would be @PN = current()/My Table/@PN or even current()/My 1st Table/My 2nd Table/@PN.&lt;/p&gt;&lt;p&gt;Keep trying until it works that should help&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25930.aspx</link><pubDate>Fri, 25 Jan 2008 20:21:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25930</guid><dc:creator>aznative</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25930</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;&lt;p&gt;Thank you for the guidance on this.&lt;/p&gt;&lt;p&gt;I recreated the form as you suggested.&amp;nbsp; I am having a small issue with it though.&lt;/p&gt;&lt;p&gt;First, I am using Infopath 2003 SP2 if that is pertinent.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Let&amp;#39;s say this is the table I am using in my Access database&lt;/p&gt;&lt;p&gt;PN&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  MFG&lt;/p&gt;&lt;p&gt;A11&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  Sony&lt;br /&gt;D55&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  HP&lt;br /&gt;X89&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Dell&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I set up the form with a repeating table where the first field is the Part Number and the second field in the Manufacturer (don&amp;#39;t worry...this will get more user friendly...right now I am still learning the basics).&lt;/p&gt;&lt;p&gt;I made the Part Number field a drop down box.&amp;nbsp; On the first row, when the user chooses a part number, the Manufacturer field populates correctly.&amp;nbsp; However, it starts messing up after that.&lt;/p&gt;&lt;p&gt;Examples:&lt;/p&gt;&lt;p&gt;A) If the user choose A11 on the first row it correctly returns Sony.&amp;nbsp; However, on all rows following the first it always returns Sony no matter what Part Number is chosen.&lt;/p&gt;&lt;p&gt;B)&amp;nbsp; If the user chooses X89 on the first row, it correctly returns Dell.&amp;nbsp; If the user chooses D55 on the second row, it correctly chooses HP.&amp;nbsp; If on the third row the user chooses X89 again, it does not return Dell...it incorrectly returns HP instead.&amp;nbsp; It&amp;#39;ll continue to return HP on each new added row no matter how many times use choose X89 or D55...HOWEVER, if you choose A11 again it properly returns Sony, but after that, it only returns Sony on every new row the user adds no matter what Part Number is chosen.&lt;br /&gt;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &lt;br /&gt;&amp;nbsp;I&amp;#39;m sure I&amp;#39;m missing something simple here...&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you again for your help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Also, thank you for the link to the Qdabra tools. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Josh&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25918.aspx</link><pubDate>Fri, 25 Jan 2008 05:41:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25918</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25918</wfw:commentRss><description>&lt;p&gt;What you need to do is rearchitect a bit.&lt;/p&gt;
&lt;p&gt;Have your repeating table but move the drop down selection within the repeating table and bind it to the part number field. Put it in the initial column where you might display part number anyway.&amp;nbsp; Setup the source to your secondary connection which queries all records in the Table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Then the rules on the dropdown which set field values will only effect the row it is within rather than all rows.&lt;/p&gt;
&lt;p&gt;So the user starts form. Selects a partnumber from the drop down, name might be easier, but whatever and once they select it the rest of the row it set with the data using filters.&amp;nbsp; Then they insert the next row and select from that rows dropdown, etc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;A better way would be to use web services to query your database, that way you would not have to load the whole data but could query for each part number.&amp;nbsp; Also then you could save the form dat back to your database for storage and analysis.&lt;/p&gt;
&lt;p&gt;You may want to check out the Database Accelerator Package which is a installable, ready to use, set of web services to interact with your database without the need for code. &lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry19957.aspx" target="_blank"&gt;Qdabra Database Accelerator Suite Version 2.1 - Developer&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Help with "shopping cart" made with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/25912.aspx</link><pubDate>Thu, 24 Jan 2008 22:29:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25912</guid><dc:creator>aznative</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25912</wfw:commentRss><description>&lt;p&gt;Hello everyone.&lt;/p&gt;
&lt;p&gt;I am still very new to Infopath.&amp;nbsp; I am trying to create something similar to a shopping cart using repeating tables.&lt;/p&gt;
&lt;p&gt;Here is the basic breakdown:&lt;/p&gt;
&lt;p&gt;There are two&amp;nbsp;parts to the form:&amp;nbsp;1 drop down box and&amp;nbsp;the repeating table&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The dropdown box has a list of part numbers.&amp;nbsp; The&amp;nbsp;repeating table has fields for the part number, manufacturer,&amp;nbsp;and price.&amp;nbsp; All of the data for this is stored in an Access database.&lt;/p&gt;
&lt;p&gt;A)&amp;nbsp; User selects a part number from a drop down box.&lt;br /&gt;B)&amp;nbsp; A rule is ran that populates the fields in the first row of the repeating table.&lt;br /&gt;C) The user hits &amp;quot;insert item&amp;quot; and chooses another product from the drop down list.&lt;br /&gt;D) User repeats this until they have added all the products they need.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The problem I am having is that all of the fields in all of the rows update to match what is returned from the last selected part number in the drop down list.&amp;nbsp; I am not surprised by that.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Sooo...is it possible to do what I am trying to do?&amp;nbsp; I need the previous rows to retain the information they had and not to update every time a new part number is selected.&amp;nbsp; Just from some various reading I&amp;#39;ve done I am guessing the current() function holds the answer, but when I try to implement that in any fashion the table doesn&amp;#39;t populate at all...the fields all stay blank.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you for your help!&lt;/p&gt;
&lt;p&gt;Josh&lt;/p&gt;</description></item></channel></rss>