<?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: SQL version of Example</title><link>https://www.infopathdev.com:443/forums/thread/6836.aspx</link><pubDate>Fri, 20 May 2005 22:38:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6836</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6836</wfw:commentRss><description>you can do this with xpath, but it's a bit tricky. There was an interesting post on Microsoft's blog in March or April of 2004. I also found:&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2004/09/13/228881.aspx&gt;http://blogs.msdn.com/infopath/archive/2004/09/13/228881.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: SQL version of Example</title><link>https://www.infopathdev.com:443/forums/thread/6835.aspx</link><pubDate>Tue, 17 May 2005 23:00:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6835</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6835.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6835</wfw:commentRss><description>Well it seems my joy is short lived. I am able to lookup the price for one line item, but when I try and do a second line item, I select my product and it returns the same price as the first line item. It's like during the second line item selection it doesn't go through the rules again. I would think that every time someone uses the drop-down menu where the rules are applied, the rules run again. Am I just gonna have to hunker down and do it through VB.NET?&lt;br /&gt;&lt;br /&gt;Update: I have been told that I need to use current() in my filter to select the current node in the repeating table. I will share my findings.</description></item><item><title>Re: SQL version of Example</title><link>https://www.infopathdev.com:443/forums/thread/6834.aspx</link><pubDate>Tue, 17 May 2005 19:16:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6834</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6834.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6834</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;OK, so double click on the first dropdown box. Select Rules. Choose a name (for example, "Lookup"). Add an action to query a data connection and specify your data connection. To do filtering, you'll want to look at adding a second action to set the field based on an xpath filtering of the data that was queried in the first action. XPath can be tricky, but there is a good section on filtering in Chapter 3 (or 4 - I forget since Vani wrote it ... :) . &lt;br /&gt;&lt;br /&gt;Good luck!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Ok Pat,&lt;br /&gt;I have a question regarding how Infopath works on the inside. I believe I have my rules set up correctly. I have a rule on the drop down box where it first queries the table of Products, and then another rule where it sets the field of @UnitPrice, which has a text box linked to it....&lt;br /&gt;&lt;br /&gt;Heh...you know what...it started working while I was writing this reply out. Don't know how it is working, but i'll report back once I understand it. I like to know how things work...heh.&lt;br /&gt;&lt;br /&gt;Thanks for the help Pat!</description></item><item><title>Re: SQL version of Example</title><link>https://www.infopathdev.com:443/forums/thread/6833.aspx</link><pubDate>Tue, 17 May 2005 01:34:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6833</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6833</wfw:commentRss><description>OK, so double click on the first dropdown box. Select Rules. Choose a name (for example, "Lookup"). Add an action to query a data connection and specify your data connection. To do filtering, you'll want to look at adding a second action to set the field based on an xpath filtering of the data that was queried in the first action. XPath can be tricky, but there is a good section on filtering in Chapter 3 (or 4 - I forget since Vani wrote it ... :) . &lt;br /&gt;&lt;br /&gt;Good luck!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: SQL version of Example</title><link>https://www.infopathdev.com:443/forums/thread/6832.aspx</link><pubDate>Mon, 16 May 2005 16:25:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6832</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6832.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6832</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Sainzmichael,&lt;br /&gt;You could use an OnAfterChange event handler to call SQL directly and update the current price field when the model number changes. Can you provide the code you are using that isn't working (or the rule) and some description of the schema?&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Thanks Pat for the reply.&lt;br /&gt;&lt;br /&gt;I have a table called OrderDetails for each line item. It is the child of a table called Orders which is all in SQL and is the Main Data Connection. In OrderDetails there is an atribute field called UnitPrice. In my form there is a drop down box that gets its list from a secondary data source called Products, also a table in SQL. Products has all the prices and model numbers (the way we reference and locate product) in it. The drop down list gets its list from the secondary source, but stores the data in OrderDetails in a atribute called ProductID. &lt;br /&gt;&lt;br /&gt;From what I have said above in previous posts, I am trying to get it so that when the product is selected from the drop down list, it will populate a textbox with the correct price. I would like to try to do this with rules, but if not, code will have to do...i'm just learning scripting so if you point me in the right direction, I'm sure I could figure it out ;)&lt;br /&gt;&lt;br /&gt;Thanks for the help Pat!&lt;br /&gt;(Your book is AwEsOmE!)</description></item><item><title>Re: SQL version of Example</title><link>https://www.infopathdev.com:443/forums/thread/6831.aspx</link><pubDate>Fri, 13 May 2005 18:24:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6831</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6831</wfw:commentRss><description>Hi Sainzmichael,&lt;br /&gt;You could use an OnAfterChange event handler to call SQL directly and update the current price field when the model number changes. Can you provide the code you are using that isn't working (or the rule) and some description of the schema?&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>SQL version of Example</title><link>https://www.infopathdev.com:443/forums/thread/4666.aspx</link><pubDate>Thu, 12 May 2005 18:40:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4666</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4666</wfw:commentRss><description>I'm trying to use the "Populating Table Row After Selection" but instead using SQL rather then just static files. As I understand it, how this is done is by rules.&lt;br /&gt;&lt;br /&gt;I believe I have duplicated the rules, but I can't seem to get the expression or text boxes (I have tried both) to update.&lt;br /&gt;&lt;br /&gt;This is an order form and I have a drop-down list with model numbers. I want the rule to figure out that once a model number is selected, it updates a field with it's current price. As it stands right now, I believe that the textbox or expression field just isn't getting the updated data. How would I go about to solve this issue?</description></item></channel></rss>