<?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: Using a field's text value to build an XPath expression</title><link>https://www.infopathdev.com:443/forums/thread/49276.aspx</link><pubDate>Fri, 20 Nov 2009 06:54:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49276</guid><dc:creator>fschick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49276.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49276</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Jimmy:&lt;/p&gt;&lt;p&gt;Thanks a lot.&amp;nbsp; you put me on the right track.&amp;nbsp; I figured out exactly what I needed after about 20 min of trial &amp;amp; error.&lt;/p&gt;&lt;p&gt;Your help saved me a &lt;i&gt;grip&lt;/i&gt; of time.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#ff0000"&gt;&lt;b&gt;MUCH APPRECIATED!&lt;/b&gt;&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Fritz &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using a field's text value to build an XPath expression</title><link>https://www.infopathdev.com:443/forums/thread/49265.aspx</link><pubDate>Fri, 20 Nov 2009 05:09:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49265</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49265.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49265</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;qRules is great when you want to set a value in a single row of a repeating section, but if I understand correctly, you&amp;#39;re trying to &lt;i&gt;retrieve&lt;/i&gt; values based on a dynamic XPath query.&lt;/p&gt;&lt;p&gt;In this case, I think something like this should work:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;../@*[local-name() =concat(xdXDocument:get-DOM()/my:myFields/my:PRODUCTS/text(), &amp;quot;_avail&amp;quot;)] = &amp;quot;TRUE&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You should double-check that the true values are actually TRUE, and not &amp;#39;true&amp;#39; (lower case) or &amp;#39;1&amp;#39;.&amp;nbsp; I would expect it to be one of the latter.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using a field's text value to build an XPath expression</title><link>https://www.infopathdev.com:443/forums/thread/49262.aspx</link><pubDate>Fri, 20 Nov 2009 04:34:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49262</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49262.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49262</wfw:commentRss><description>&lt;p&gt;Qdabra just released qRules v2.0 with the new Set Value command that does exactly what you have in mind. It filters a repeating table based on an xpath parameter that you create based on other fields. qRules includes a collection of the most common InfoPath commands that would require code. You can inject qRules into your form and just set the qRules secondary data source&amp;nbsp;to execute the command you want. You can use InfoPath rules do this.&amp;nbsp;Here&amp;#39;s a link to more information: &lt;a href="http://www.qdabra.com/en/products/qRules.aspx"&gt;http://www.qdabra.com/en/products/qRules.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Using a field's text value to build an XPath expression</title><link>https://www.infopathdev.com:443/forums/thread/49260.aspx</link><pubDate>Fri, 20 Nov 2009 04:09:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49260</guid><dc:creator>fschick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49260.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49260</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;This is my first post on this site.&amp;nbsp; I have been designing forms in infopath for about 18 months and have found this site incredibly valuable when I had questions in the past.&amp;nbsp; I have not been able to find any info on how to do what I am trying to do without code, which I am very sure could be done, but I would prefer &lt;i&gt;not&lt;/i&gt; to use code or manually set filters in the data source dialogs.&amp;nbsp; (when using code I use VB or JScript.. fyi)&lt;/p&gt;&lt;p&gt;I am creating a form that will permit our salespeople to quote our customers.&amp;nbsp; When quoting this particular class of product, we only permit one of these products to be quoted per form.&lt;/p&gt;&lt;p&gt;Short Question:&amp;nbsp; What i want to do is take the text value of a listbox control, concat it with another string and match that value to a column name to find the boolean value(s) in that column = TRUE&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Long Question:&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;I have a dropdown listbox listing the products available in this quote.&amp;nbsp; this control is named PRODUCTS and it has 3 items whose names &amp;amp; values are: &amp;#39;Product1&amp;#39;, &amp;#39;Product2&amp;#39;, and &amp;#39;Product3&amp;#39;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I have a database in Access (I may convert it into a MS SQL 2005 db)&lt;/li&gt;&lt;ul&gt;&lt;li&gt;This db has multiple tables, each table acts as a logical grouping of available components for &lt;i&gt;all&lt;/i&gt; three products.&amp;nbsp; eg:&amp;nbsp; a table named &amp;#39;Valves&amp;#39; that has 10 rows in it.&amp;nbsp; Some valves are used by Product1, some are used by Product2, some are used by Product3 or any combination of any or all of them.&lt;/li&gt;&lt;li&gt;Each table has 3 indexed, boolean columns.&amp;nbsp; for purposes of this post they are named: &amp;#39;Product1_avail&amp;#39;, &amp;#39;Product2_avail&amp;#39;, and &amp;#39;Product3_avail&amp;#39;.&amp;nbsp; If a component in the table has a TRUE value in one of these columns, it is a component that can be added to that particular product chosen in the 1st &lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;What I want to do is take the text value from the listbox (lets say Product1) and perform concat(./PRODUCTS, &amp;quot;_avail&amp;quot;), the result of which would correspond to a column name.&amp;nbsp; in this case, &amp;#39;Product1_avail&amp;#39;.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Then take that string value to choose the corresponding data column and return all rows whose values in that column which are marked as TRUE&lt;/li&gt;&lt;li&gt;So, the XPath would look something like this (i believe):&amp;nbsp;&amp;nbsp; ../@(concat(xdXDocument:get-DOM()/my:myFields/my:PRODUCTS/text(), &amp;quot;_avail&amp;quot;)) = &amp;quot;TRUE&amp;quot;&amp;nbsp;&amp;nbsp; &lt;i&gt;I know that &amp;#39; ../@(concat &amp;#39; is not valid XPath. I&amp;#39;m looking for a solution that is valid XPath.&lt;br /&gt;&lt;/i&gt;&lt;/li&gt;&lt;/ol&gt;Is there a non-code solution using only XPath expressions?&lt;br /&gt;&lt;p&gt;If you need more info, please post your requests.&lt;/p&gt;&lt;p&gt;Thanks A Lot!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>