<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Result of a query</title><link>https://www.infopathdev.com:443/forums/thread/14822.aspx</link><pubDate>Thu, 05 Oct 2006 08:14:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14822</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14822</wfw:commentRss><description>Hi Matt,&lt;br /&gt;thank you for your hint. My problem now is that I don't know what kind of expression I should use to test rows in the rule condition. Can you help me?&lt;br /&gt;Thank you. Raoul</description></item><item><title>Re: Result of a query</title><link>https://www.infopathdev.com:443/forums/thread/14821.aspx</link><pubDate>Wed, 04 Oct 2006 18:03:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14821</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14821</wfw:commentRss><description>Oh, ok.  You should be able to translate the code above into three rules.&lt;br /&gt;&lt;br /&gt;Rule 1: no condition, fire query to secondary dom&lt;br /&gt;Rule 2: if rows on secondary dom &amp;gt; 0, change view&lt;br /&gt;Rule 3: if rows on secondary dom = 0, display message</description></item><item><title>Re: Result of a query</title><link>https://www.infopathdev.com:443/forums/thread/14820.aspx</link><pubDate>Wed, 04 Oct 2006 07:35:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14820</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14820.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14820</wfw:commentRss><description>Hi Matt,&lt;br /&gt;thank you for help. Language of code is js, but actually button query start a "query action" with secondary connection , not a "coded query" into onclick event.&lt;br /&gt;I'm waiting for your reply.&lt;br /&gt;Thank you. Raoul</description></item><item><title>Re: Result of a query</title><link>https://www.infopathdev.com:443/forums/thread/14819.aspx</link><pubDate>Tue, 03 Oct 2006 16:17:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14819</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14819.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14819</wfw:commentRss><description>This shouldn't be too hard.  What language are you using?  Below is some psuedo-code for achieving this:&lt;br /&gt;&lt;br /&gt;IssueQuery();&lt;br /&gt;&lt;br /&gt;NodeList = SecondaryDom.selectNodes( "/my:xpath/my:toNodes" );&lt;br /&gt;if( NodeList.length &amp;gt; 0 )&lt;br /&gt;    ChangeView();&lt;br /&gt;else&lt;br /&gt;    DisplayMessage();&lt;br /&gt;&lt;br /&gt;I hope this helps, if you provide the language that you are using I will be able to provide a more tailored code snippet.</description></item><item><title>Result of a query</title><link>https://www.infopathdev.com:443/forums/thread/12955.aspx</link><pubDate>Tue, 03 Oct 2006 12:27:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12955</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12955</wfw:commentRss><description>Hi all,&lt;br /&gt;I have a button query that search for a code into an access db. I need to know if this query return some records or not. If return one or more records I should change view, if no records return I should display a message. Can you help me?&lt;br /&gt;Thanks in advance.&lt;br /&gt;Raoul</description></item></channel></rss>