<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Conditional formatting based on New Record ?</title><link>https://www.infopathdev.com:443/forums/thread/52821.aspx</link><pubDate>Wed, 17 Mar 2010 09:39:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52821</guid><dc:creator>paulsassya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=52821</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Patrick,&lt;/p&gt;&lt;p&gt;&amp;nbsp;You mentioned: &amp;quot;set that value when the New record button is pressed&amp;quot;&lt;/p&gt;&lt;p&gt;How do you do that?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Paul &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Conditional formatting based on New Record ?</title><link>https://www.infopathdev.com:443/forums/thread/52749.aspx</link><pubDate>Tue, 16 Mar 2010 07:07:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52749</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52749.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=52749</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;
&lt;p&gt;You can put the datafields section in an optional section that is hidden based on a field in a secondary data source (you can add a little XML file that has one value in it) and set that value when the New record button is pressed.&lt;/p&gt;
&lt;p&gt;Hope that makes sense!&lt;/p&gt;
&lt;p&gt;Patrick&lt;/p&gt;</description></item><item><title>Conditional formatting based on New Record ?</title><link>https://www.infopathdev.com:443/forums/thread/52574.aspx</link><pubDate>Tue, 09 Mar 2010 16:31:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52574</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52574.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=52574</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using InfoPath 2007.&lt;/p&gt;
&lt;p&gt;I have a form with qRules in and working.&lt;/p&gt;
&lt;p&gt;I have created the form linked to a database table.&lt;/p&gt;
&lt;p&gt;I have the query selection box based on a secondary datatable.&amp;nbsp; When the selection box is updated an appropriate button appears - either get existing records(Run Query), or create a new record (New Record).&lt;/p&gt;
&lt;p&gt;I would like the datafields section on the form to be hidden until one of these buttons is pressed.&amp;nbsp; I don&amp;#39;t know what condition to use to get the conditional formatting to work.&lt;/p&gt;
&lt;p&gt;I can count the number of records - if any exist.&amp;nbsp; So I can cope if there are existing records.&lt;/p&gt;
&lt;p&gt;If there are no existing records - what condition can I use to make the section appear - but only after the New record button has been pressed.&lt;/p&gt;
&lt;p&gt;I hope this makes sense.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>