<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/45609.aspx</link><pubDate>Fri, 07 Aug 2009 14:39:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45609</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45609.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=45609</wfw:commentRss><description>&lt;p&gt;#2 and #3 worked as well. Thanks again Hilary.&lt;/p&gt;</description></item><item><title>Re: Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/45112.aspx</link><pubDate>Tue, 28 Jul 2009 19:14:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45112</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45112.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=45112</wfw:commentRss><description>&lt;p&gt;Yeah, that did it, it worked! Now to implement #2 and #3...&lt;/p&gt;
&lt;p&gt;Thanks Hilary!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/45061.aspx</link><pubDate>Mon, 27 Jul 2009 22:37:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45061</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=45061</wfw:commentRss><description>&lt;p&gt;&amp;quot;It works on my machine&amp;quot; is a lousy answer, but it does... In your open rule, when you set ShowData to false, click the &lt;strong&gt;&lt;em&gt;fx&lt;/em&gt;&lt;/strong&gt; button and open the formula editor and use the &amp;#39;false&amp;#39; function (or type &lt;strong&gt;false()&lt;/strong&gt; into the formula editor). I know in the conditional formatting it shows FALSE all in caps, but I think if you are setting the value of a boolean to text in IP, you&amp;#39;d want to set it to all lower case &amp;#39;false&amp;#39;. This would explain why I like to use the function from the formula editor....&lt;/p&gt;</description></item><item><title>Re: Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/45060.aspx</link><pubDate>Mon, 27 Jul 2009 22:26:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45060</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45060.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=45060</wfw:commentRss><description>&lt;p&gt;Thanks, I understand now. FYI- As for the new fields, I tried adding the ShowData field&amp;nbsp;to myFields as True/False, set&amp;nbsp;its default as blank, added an Open rule to set&amp;nbsp;it to FALSE, and conditionally formatted the Section within the &amp;quot;data&amp;quot;section to hide if ShowData was FALSE. It had no effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, I think I can utilize what you&amp;#39;ve told me to make it work. I will let you know how it turns out Hilary. Thanks a bunch!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RhysAZ&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/45056.aspx</link><pubDate>Mon, 27 Jul 2009 21:47:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45056</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=45056</wfw:commentRss><description>&lt;p&gt;Generally, if I am adding fields for showing / hiding data, I&amp;#39;d make them True/False. I think that&amp;#39;s simpler. &lt;/p&gt;
&lt;p&gt;For item 2, I&amp;#39;ve attached a screen shot -- in your rule condition, you&amp;#39;d select the repeating data field from your main data connection (/dfs:myFields/dfs:dataFields/d:tableName) and then in the Select drop down, choose &amp;#39;Number of occurances&amp;#39;. If the number of occurances of that group = 0, you&amp;#39;d set &amp;#39;Show Message&amp;#39; to true, for example. Since the data section won&amp;#39;t show if there aren&amp;#39;t any results to your query, you probably won&amp;#39;t have to do anything extra to hide that, if you have hidden it on open.&lt;/p&gt;
&lt;p&gt;As to 3, I just meant that if you were using the &amp;#39;New Record&amp;#39; button if nothing was returned by the query, you&amp;#39;d want to put that button in the same section with your message about no query results, so it will hide with the message if there are query results...&lt;/p&gt;</description></item><item><title>Re: Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/45051.aspx</link><pubDate>Mon, 27 Jul 2009 21:14:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45051</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45051.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=45051</wfw:commentRss><description>&lt;p&gt;Hi Hilary- No I don&amp;#39;t mind adding the fields. Couple of questions:&lt;/p&gt;
&lt;p&gt;1. Should these new&amp;nbsp;fields you say to add be a Field(element) type and Text (string) data type or True/False data type?&lt;/p&gt;
&lt;p&gt;2. When you say &amp;quot;run a query could include a rule to set ShowData to true if the count of the data nodes is greater than 0....&amp;quot; can you give me an example what the rule would look like? The &amp;quot;count of the data nodes is greater than 0&amp;quot; is what&amp;#39;s throwing me.&lt;/p&gt;
&lt;p&gt;3. When you say &amp;quot;The button you want the user to click for adding a new record could be in the same section as the message you want to display...&amp;quot; I am assuming you want me to make a section just for that button, that is bound to the Show Message field, right?&lt;/p&gt;
&lt;p&gt;RhysAZ&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/45022.aspx</link><pubDate>Mon, 27 Jul 2009 19:27:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45022</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45022.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=45022</wfw:commentRss><description>&lt;p&gt;Do you mind adding additional fields to your main data source in the template to help with this? You don&amp;#39;t have to add them to the tables in your Access database....if you right-click on the root of your main data source in the data source task pane (probably &lt;strong&gt;myFields&lt;/strong&gt;), you can add fields.&lt;/p&gt;
&lt;p&gt;You could have a field (for example) called &amp;#39;ShowData&amp;#39; and have an open rule that sets it to false. Then conditionally format your data section to not show if &amp;#39;ShowData&amp;#39; is false.... Your button you use to run a query could include a rule to set ShowData to true if the count of the data nodes is greater than 0....&lt;/p&gt;
&lt;p&gt;You could add another field for showing your message, ShowMessage, and have it be set to false in the open rules. When you run your query, if the count of the data nodes = 0, you could set &amp;#39;ShowMessage&amp;#39; to true. The button you want the user to click for adding a new record could be in the same section as the message you want to display. Format that section not to show unless ShowMessage is true....&lt;/p&gt;</description></item><item><title>Need to hide the "data" section when records are not returned when queried</title><link>https://www.infopathdev.com:443/forums/thread/44948.aspx</link><pubDate>Fri, 24 Jul 2009 22:31:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44948</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44948</wfw:commentRss><description>&lt;p&gt;Quick question-&lt;/p&gt;
&lt;p&gt;I am using IP2003 and I am connected to an Access 2003 d.b. My form has the &amp;quot;query section&amp;#39; and the &amp;quot;data&amp;quot; section. I want my &amp;quot;data&amp;quot; section to be conditionally hidden at the form opening. Then, when the user queries the database from a selection in the &amp;quot;query&amp;quot; section (such as a &amp;quot;date&amp;quot;) and no record is returned for that &amp;quot;date&amp;quot;, I want a message telling the user that no record was found (similar to the message when you use the Run Query button and no data was found), keep the &amp;quot;data&amp;quot; section hidden, and force the user to select a button or link (just like the Option Section) that will then open the &amp;quot;data&amp;quot; section so they can enter a new record. &lt;/p&gt;
&lt;p&gt;I want to do this so the particular user&amp;nbsp;can&amp;#39;t add a new record to the database if they have already entered a record&amp;nbsp;with the same date.&lt;/p&gt;
&lt;p&gt;I have 9 Repeating Group tables, with one table as&amp;nbsp;tblMain that is tied to the other eight tables in a one-to-many relationship.&lt;/p&gt;
&lt;p&gt;Can someone please tell me how this can be done using controls (Sections, Repeating Sections, Optional Sections, etc), conditional formatting, and with rules?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve almost accomplished what&amp;nbsp;I want but not quite. So, the request for help to do it properly.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;RhysAZ&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>