<?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: Conditional message when external data source not available.</title><link>https://www.infopathdev.com:443/forums/thread/47628.aspx</link><pubDate>Tue, 06 Oct 2009 17:14:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47628</guid><dc:creator>SamCamblin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47628.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=47628</wfw:commentRss><description>&lt;p&gt;Thanks, Samir!&amp;nbsp; This is exactly what I was looking for.&lt;/p&gt;</description></item><item><title>Re: Conditional message when external data source not available.</title><link>https://www.infopathdev.com:443/forums/thread/47625.aspx</link><pubDate>Tue, 06 Oct 2009 16:24:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47625</guid><dc:creator>Samir Farid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=47625</wfw:commentRss><description>&lt;p&gt;Hi Sam and welcome,&lt;/p&gt;
&lt;p&gt;What you basically have to do is make a Conditional Formatting rule that counts the number of rows in your retrieved datasource. If the rows are more than 0 (zero)&amp;nbsp;then you hide the error message. I have implemented your requirement in the IP form and reattached it with&amp;nbsp;my post.&lt;/p&gt;
&lt;p&gt;There are a couple of things I changed.&lt;/p&gt;
&lt;p&gt;First of all, it&amp;#39;s better to put your message in an expression box control this will allow the text to be rendered as plain text instead of having borders around it.&lt;/p&gt;
&lt;p&gt;Next, you need to add a conditional formatting rule in order to show and hide the message. You can achieve this by following these steps:&lt;/p&gt;
&lt;p&gt;1- Right click on the expression box and go to &lt;strong&gt;Conditional Formating...&lt;/strong&gt;&lt;br /&gt;2- On the &lt;strong&gt;Conditional Formatting dialog box&lt;/strong&gt;, click on Add...&lt;br /&gt;3- On the &lt;strong&gt;Conditional Format dialog box&lt;/strong&gt;, under &amp;quot;&lt;strong&gt;If this condition is true:&lt;/strong&gt;&amp;quot;, in the fields dropdownlist select &amp;quot;&lt;strong&gt;Select a field or group...&lt;/strong&gt;&amp;quot;.&lt;br /&gt;4- In the &lt;strong&gt;Select a Field or Group dialog box&lt;/strong&gt;, navigate to your secondary datasource. In&amp;nbsp;our case it&amp;#39;s &amp;quot;&lt;strong&gt;InfoPathTestData (Secondary)&lt;/strong&gt;&amp;quot;.&lt;br /&gt;5- In the &lt;strong&gt;Select a Field or Group dialog box&lt;/strong&gt;, navigate in the datasource tree&amp;nbsp;and select one of the dataFields for example &amp;quot;&lt;strong&gt;:Title&lt;/strong&gt;&amp;quot;&lt;br /&gt;6- In the &lt;strong&gt;Select a Field or Group dialog box&lt;/strong&gt;, under the Select dropdownlist, select &amp;quot;&lt;strong&gt;Number of occurrences of Title&lt;/strong&gt;&amp;quot; and press &lt;strong&gt;OK&lt;/strong&gt;&lt;br /&gt;7- On the &lt;strong&gt;Conditional Format dialog box&lt;/strong&gt;, under &amp;quot;&lt;strong&gt;If this condition is true:&lt;/strong&gt;&amp;quot;, in the criteria dropdownfield select &amp;quot;&lt;strong&gt;is greater than&lt;/strong&gt;&amp;quot;&lt;br /&gt;8- On the &lt;strong&gt;Conditional Format dialog box&lt;/strong&gt;, under &amp;quot;&lt;strong&gt;If this condition is true:&lt;/strong&gt;&amp;quot;, in the value dropdownfield select &amp;quot;&lt;strong&gt;type a number...&lt;/strong&gt;&amp;quot; and type &lt;strong&gt;0&lt;/strong&gt; (zero).&lt;br /&gt;9- On the &lt;strong&gt;Conditional Format dialog box&lt;/strong&gt;, under &amp;quot;&lt;strong&gt;Then apply this formatting:&lt;/strong&gt;&amp;quot;, check the &amp;quot;&lt;strong&gt;Hide this control&lt;/strong&gt;&amp;quot; checkbox.&lt;br /&gt;10- Press &lt;strong&gt;OK&lt;/strong&gt; on all dialog boxes&lt;br /&gt;11- Test your form&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Conditional message when external data source not available.</title><link>https://www.infopathdev.com:443/forums/thread/47622.aspx</link><pubDate>Tue, 06 Oct 2009 14:03:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47622</guid><dc:creator>SamCamblin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=47622</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using lookup values from an external data source.&amp;nbsp; However when the form opens and the user doesn&amp;#39;t have access to the internet the dropdown is blank.&amp;nbsp; I&amp;#39;d like to put a conditional message next to the field to explain why the field is blank.&amp;nbsp; I&amp;#39;m trying to do it on the attached form but can&amp;#39;t get it to work.&amp;nbsp; Please help.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;</description></item></channel></rss>