<?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: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49678.aspx</link><pubDate>Thu, 03 Dec 2009 16:54:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49678</guid><dc:creator>smods</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49678</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;ErnestoM:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;I imagine that you already have a rule that sets a field&amp;#39;s value based on the data retrieved.&lt;/p&gt;
&lt;p&gt;If so, then you just need a second rule, in case a match is not found. When that happens, insted of setting the fields equal to the value retrived, you&amp;#39;ll set it equal to &amp;quot;no match found&amp;quot;. &lt;/p&gt;
&lt;p&gt;RULE 1: Set a field&amp;#39;s value to the value retrieved from the xml&lt;br /&gt;Condition: there is a match in the xml file&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;RULE 2: Set a field&amp;#39;s value to &amp;quot;No match found&amp;quot; &lt;br /&gt;Condition: there is no match in the xml file&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Hi Ernesto,&lt;/p&gt;
&lt;p&gt;At the moment I have the default value in the two data fields (e-mail and name) as: &lt;/p&gt;
&lt;p&gt;@AGName[@AGLan = AGLANID]&lt;/p&gt;
&lt;p&gt;&amp;amp;&lt;/p&gt;
&lt;p&gt;@AGMail[@AGLan = AGLANID]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So from the @AGName &amp;amp; @AGMail are retreived from the secondary data source (the XML file) where @AGLan (Text box in primary data source) matches AGLANID from the secondary data source (the XML file).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Where you say &amp;quot;Condition: there is a match in the xml file&amp;quot;&amp;nbsp;- What is the criteria you set in the rule as&amp;nbsp;I cannot figure out how to do this.&lt;/p&gt;
&lt;p&gt;Many thanks for your help!&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49677.aspx</link><pubDate>Thu, 03 Dec 2009 16:39:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49677</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49677</wfw:commentRss><description>&lt;p&gt;I imagine that you already have a rule that sets a field&amp;#39;s value based on the data retrieved.&lt;/p&gt;&lt;p&gt;If so, then you just need a second rule, in case a match is not found. When that happens, insted of setting the fields equal to the value retrived, you&amp;#39;ll set it equal to &amp;quot;no match found&amp;quot;. &lt;/p&gt;&lt;p&gt;RULE 1: Set a field&amp;#39;s value to the value retrieved from the xml&lt;br /&gt;Condition: there is a match in the xml file&lt;br /&gt;&lt;/p&gt;&lt;p&gt;RULE 2: Set a field&amp;#39;s value to &amp;quot;No match found&amp;quot; &lt;br /&gt;Condition: there is no match in the xml file&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49676.aspx</link><pubDate>Thu, 03 Dec 2009 16:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49676</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49676</wfw:commentRss><description>&lt;p&gt;Hi -- Hide the fields if they are blank and the LAN ID field is populated. Add expression boxes that say &amp;#39;No Match Found&amp;#39; that display when the fields are blank and the LAN ID field is populated.&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49672.aspx</link><pubDate>Thu, 03 Dec 2009 15:35:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49672</guid><dc:creator>smods</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49672</wfw:commentRss><description>&lt;p&gt;Thanks for replying Patrick.&lt;/p&gt;
&lt;p&gt;Basically I have an infopath form with a receive data connection that receives data from an XML file.&lt;/p&gt;
&lt;p&gt;I have a text box where the user types in their LAN ID and if a match is found it displays their name and contact e-mail address&amp;nbsp;in two other fields&amp;nbsp;(information from the XML file).&amp;nbsp; However when a user types in a value that isn&amp;#39;t found in the XML list then nothing is returned in the other two fields.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I need to understand the best way to get the get the name and e-mail fields to display &amp;quot;No Match Found&amp;quot; when the user enters a value not found in the XML list.&lt;/p&gt;
&lt;p&gt;Thanks, if you need any further information then please let me know&lt;/p&gt;
&lt;p&gt;smods!&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49666.aspx</link><pubDate>Thu, 03 Dec 2009 13:49:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49666</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49666</wfw:commentRss><description>&lt;p&gt;Hi Smods,&lt;/p&gt;
&lt;p&gt;I have no idea what you are talking about. Please take a deep breath and explain in detail what you would like your form to do and what it is currently doing. &lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49662.aspx</link><pubDate>Thu, 03 Dec 2009 11:55:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49662</guid><dc:creator>smods</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49662</wfw:commentRss><description>&lt;p&gt;Can anyone help with what I need to do?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49559.aspx</link><pubDate>Tue, 01 Dec 2009 08:10:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49559</guid><dc:creator>smods</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49559</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m unsure as to what rules I would use for this?&lt;/p&gt;
&lt;p&gt;At the moment the default value of the text box is &amp;quot;@AGName[@AGLan = AGLANID]&amp;quot;&lt;/p&gt;
&lt;p&gt;Any help you can offer with the rules would be appreciated&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49524.aspx</link><pubDate>Mon, 30 Nov 2009 15:10:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49524</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49524</wfw:commentRss><description>&lt;p&gt;You are querying an XML list. There are two possible outcomes:&lt;/p&gt;&lt;p&gt;1. A record is found. So you create a rule to display the data retrieved.&lt;/p&gt;&lt;p&gt;2. A record is not found. So you create a rule to display a dialog box or an expression box with a message.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s a link that might prove useful: http://www.bizsupportonline.net/blog/2009/08/infopath-rules-conditions/ &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49523.aspx</link><pubDate>Mon, 30 Nov 2009 15:04:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49523</guid><dc:creator>smods</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49523.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49523</wfw:commentRss><description>&lt;p&gt;Displaying no match found would be ideal. &lt;/p&gt;
&lt;p&gt;How would I do this?&lt;/p&gt;</description></item><item><title>Re: URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49516.aspx</link><pubDate>Mon, 30 Nov 2009 13:53:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49516</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49516</wfw:commentRss><description>&lt;p&gt;Ummmm... how about displaying &amp;quot;no match found&amp;quot; using conditional formatting or red guidance text?&lt;/p&gt;</description></item><item><title>URGENT Help Required! Retrieve data from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/49515.aspx</link><pubDate>Mon, 30 Nov 2009 13:48:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49515</guid><dc:creator>smods</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49515.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=49515</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have a data connection to retrieve data from an XML file.&amp;nbsp; My users type in their LAN id into a field and it looks at their LAN id and returns their name and contact details.&amp;nbsp; What I need to know is what is the best option for when no match is found?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item></channel></rss>