<?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: Binding Sections with no Data - best practice?</title><link>https://www.infopathdev.com:443/forums/thread/106922.aspx</link><pubDate>Tue, 07 Jun 2016 19:46:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106922</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106922</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I usually happily ignore &amp;quot;duplicate data&amp;quot; warnings. If a control can be hidden without being in a section, I will hide it. If I have a group of controls or fields I need to hide, I usually take that as an indication that my schema should also have a group - like, if I need to hide Name / Address / City etc unless a checkbox is selected, I&amp;#39;d have a group in my schema called &amp;quot;Contact&amp;quot; with the various fields in it, and my section would be bound to Contact.&lt;/p&gt;&lt;p&gt;If I need to just hide a control that can&amp;#39;t be hidden via formatting, but only disabled, I&amp;#39;ll&amp;nbsp;bind the section to the same group as the field.&lt;/p&gt;&lt;p&gt;If I have some stuff completely unrelated to my main data source that I want to have in a section, I&amp;#39;ll use a secondary XML file (as a resource in the form) and &amp;nbsp;I will bind sections to groups in that file - say for a &amp;quot;help&amp;quot; section or something.&lt;/p&gt;&lt;p&gt;The one thing I just won&amp;#39;t do is your last bullet - I&amp;nbsp;like my schema to represent my&amp;nbsp;data, and feel like a bunch of empty groups is at odds with that goal.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Wonderful post, by the way, I hope others will also join in!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Binding Sections with no Data - best practice?</title><link>https://www.infopathdev.com:443/forums/thread/106918.aspx</link><pubDate>Tue, 07 Jun 2016 15:38:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106918</guid><dc:creator>troy001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=106918</wfw:commentRss><description>&lt;p&gt;I often use sections with&amp;nbsp;&amp;#39;Hide this control&amp;#39; formatting rules to&amp;nbsp;show/hide different buttons or messages on forms (for a SharePoint 2010 Form Library).&lt;/p&gt;&lt;p&gt;When these sections contain no actual data fields, what do you consider best practice for binding?&lt;/p&gt;&lt;p&gt;Design Checker doesn&amp;#39;t like them to be unbound, although I&amp;#39;m not sure this has any consequences.&lt;/p&gt;&lt;p&gt;I have variously:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Created a single empty group called &amp;quot;NoDataSectionBinding&amp;quot; to bind all data-free sections to (this still upsets the Design Checker with a &amp;#39;Control stores duplicate data&amp;#39; warning if more than one in the same view)&lt;/li&gt;&lt;li&gt;Tried to bind data-free sections to a group with the fields that the formatting rules are primarily based on (that group often displayed in the same view though, also causing &amp;#39;duplicate data&amp;#39; warning)&lt;/li&gt;&lt;li&gt;Created numerous empty groups so as to bind each data-free section to its own (no obvious downside, just seems OTT if there are more&amp;nbsp;than a few&amp;nbsp;- and bumps up the size of individual .xml form files with empty tags)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Would be nice to decide on a consistent approach.&lt;/p&gt;</description></item></channel></rss>