<?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: populating/displaying controls when datasource returns zero rows</title><link>https://www.infopathdev.com:443/forums/thread/44023.aspx</link><pubDate>Thu, 09 Jul 2009 09:26:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44023</guid><dc:creator>msparabola</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44023.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44023</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve realised it is happening because I&amp;#39;ve got the controls within a Repeating Section.&amp;nbsp; At the time I created the template it seemed I had to put all the controls and fields within a repeating area to get them to bind correctly.&amp;nbsp; I&amp;#39;m only ever expecting one row (if data exists) but when no data is returned of course the repeating section doesn&amp;#39;t get populated.&amp;nbsp; I think I need to put the controls onto the form outside of a repeating section.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit - what I really want is to show the data as not repeating.&amp;nbsp; I&amp;#39;m only ever going to return one row if it exists.&lt;/p&gt;</description></item><item><title>Re: populating/displaying controls when datasource returns zero rows</title><link>https://www.infopathdev.com:443/forums/thread/43853.aspx</link><pubDate>Tue, 07 Jul 2009 12:52:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43853</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43853</wfw:commentRss><description>&lt;p&gt;Yeah, you can&amp;#39;t change data for your secondary data connections like that.&amp;nbsp; If you had data elements in your main data source, you could set their default values to something from the secondary data source using a filter, but that&amp;#39;s a side thing.&amp;nbsp; Your form should not fail just because it returns no data from that source.&amp;nbsp; There has to be something funky about how its built.&lt;/p&gt;</description></item><item><title>Re: populating/displaying controls when datasource returns zero rows</title><link>https://www.infopathdev.com:443/forums/thread/43852.aspx</link><pubDate>Tue, 07 Jul 2009 12:50:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43852</guid><dc:creator>msparabola</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43852</wfw:commentRss><description>Yeah they are bound to a secondary data connection.&amp;nbsp; Under properties for either the controls or the source fields&amp;nbsp;the &amp;#39;default&amp;#39;&amp;nbsp;box is disabled, I can&amp;#39;t change that.&amp;nbsp; I&amp;#39;m sure I had the form loading (with blank controls) when the data was empty before I&amp;#39;m wondering if something else has changed.</description></item><item><title>Re: populating/displaying controls when datasource returns zero rows</title><link>https://www.infopathdev.com:443/forums/thread/43849.aspx</link><pubDate>Tue, 07 Jul 2009 12:44:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43849</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43849</wfw:commentRss><description>&lt;p&gt;Sure, it&amp;#39;s quite normal to show blank controls - they are almost always blank on form load anyway.&amp;nbsp; How exactly are these controls configured to show that data, and why can&amp;#39;t you set default values?&amp;nbsp; Are you referring to controls bound to nodes on a secondary data connection?&lt;/p&gt;</description></item><item><title>populating/displaying controls when datasource returns zero rows</title><link>https://www.infopathdev.com:443/forums/thread/43846.aspx</link><pubDate>Tue, 07 Jul 2009 09:36:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43846</guid><dc:creator>msparabola</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43846</wfw:commentRss><description>&lt;p&gt;I have a datasource pulling a single row back from a view and some controls are populated with the fields on that datasource.&amp;nbsp; If the query returns zero rows from the view then my form appears to freeze after the static header and before the controls should appear.&amp;nbsp; I can&amp;#39;t seem to set a default value on these fields/controls - is there a way to show the entire form but with blank controls when no data is retrieved?&lt;/p&gt;</description></item></channel></rss>