<?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: Query XML Secondary Data Source from Text Input Box</title><link>https://www.infopathdev.com:443/forums/thread/119644.aspx</link><pubDate>Wed, 15 Aug 2018 20:17:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119644</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119644</wfw:commentRss><description>Oh wow - ok, sorry, I hadn&amp;#39;t paid close enough attention. So .... you&amp;#39;ll be updating that XML file regularly in your form with the most recent data? I&amp;#39;m confused why you are querying the XML data connection at all - that data connection is set to query on load. We don&amp;#39;t get query fields in XML connections, so yes, you have to use XPath to return your data. I&amp;#39;m also confused by your second rule action - why are you setting a field in the XML file to the account number entered in the form&amp;#39;s data source? I also see that in the XML data, you have spaces padding the number you are matching - you may have to use a translate function to work around that. Your form actually crashes on me when I try to use the search button, but I&amp;#39;ve added a calculated value to show the XPath and will send it back to you via email.</description></item><item><title>Re: Query XML Secondary Data Source from Text Input Box</title><link>https://www.infopathdev.com:443/forums/thread/119643.aspx</link><pubDate>Wed, 15 Aug 2018 17:46:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119643</guid><dc:creator>ronstinson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119643.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119643</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The form queries the XML file for the Loan_Number&amp;nbsp;(secondary)&amp;nbsp;- not the primary SQL db (the form submits to this db).&amp;nbsp; InfoPath doesn&amp;#39;t&amp;nbsp;give me the option of selecting the query object on the XML file.&amp;nbsp;&amp;nbsp;I set it up to query the XML in the rules.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Query XML Secondary Data Source from Text Input Box</title><link>https://www.infopathdev.com:443/forums/thread/119642.aspx</link><pubDate>Wed, 15 Aug 2018 16:31:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119642</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119642.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119642</wfw:commentRss><description>It looks like your Loan Number field on your form is bound to the Loan_Number in the dataFields. But if you want to search for a specific loan, based on Loan Number, it should be bound to the queryFields. Right click that field and select Change Binding, rebind to the query fields. Then when you click your search button, the correct data will be automatically returned to your data fields - the only rule you need on your search button should be the Query using a data connection rule.</description></item><item><title>Re: Query XML Secondary Data Source from Text Input Box</title><link>https://www.infopathdev.com:443/forums/thread/119632.aspx</link><pubDate>Mon, 13 Aug 2018 19:22:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119632</guid><dc:creator>ronstinson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119632</wfw:commentRss><description>&lt;p&gt;Thanks Hilary, I can probably send&amp;nbsp;the template through a secured link but I can&amp;#39;t upload the file from here. Can you share your e-mail?&amp;nbsp;&amp;nbsp; I&amp;nbsp;used&amp;nbsp;the Current() qualifier in the dropdown but&amp;nbsp;it returned nothing when I changed it to &amp;quot;Query Data&amp;quot;. &lt;/p&gt;</description></item><item><title>Re: Query XML Secondary Data Source from Text Input Box</title><link>https://www.infopathdev.com:443/forums/thread/119631.aspx</link><pubDate>Mon, 13 Aug 2018 19:01:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119631</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119631.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119631</wfw:commentRss><description>The formula may need the current() function - mind attaching your template under a reply under the options tab and let me know where to look for the rules?</description></item><item><title>Query XML Secondary Data Source from Text Input Box</title><link>https://www.infopathdev.com:443/forums/thread/119630.aspx</link><pubDate>Mon, 13 Aug 2018 18:06:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119630</guid><dc:creator>ronstinson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119630.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119630</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to figure out how to query an xml file without using a dropdown box. The user inputs an account number in a text box, clicks the search icon, and it returns name, balance, rate, etc...&amp;nbsp; It works great with a dropdown (I don&amp;#39;t need the search button with the dropdown); but&amp;nbsp;I haven&amp;#39;t been able to figure out how to make it look up the account number -- it simply returns the first one in the xml file.&amp;nbsp; All of my rules are now attached to the search button&amp;nbsp; - it queries the xml file and then sets several field values based on that query.&amp;nbsp; &lt;/p&gt;&lt;p&gt;i.e. SHORT_NAME[ACCOUNT_NUMBER = @Loan_Number]&amp;nbsp;&amp;nbsp;&amp;nbsp; - I&amp;#39;m not sure if I have the right syntax.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thoughts??&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>