<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Optional Sections</title><link>https://www.infopathdev.com:443/forums/thread/7980.aspx</link><pubDate>Wed, 19 Oct 2005 02:43:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7980</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7980</wfw:commentRss><description>Thanks guys, I really appreciate the response.</description></item><item><title>Re: Optional Sections</title><link>https://www.infopathdev.com:443/forums/thread/7979.aspx</link><pubDate>Tue, 18 Oct 2005 07:33:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7979</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7979</wfw:commentRss><description>You did beat me on that one Patrick...&lt;br /&gt;&lt;br /&gt;e.ReturnMessage = "Sorry can't add or delete entries!";  &amp;lt;-- Optional&lt;br /&gt;e.ReturnStatus = false;&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;</description></item><item><title>Re: Optional Sections</title><link>https://www.infopathdev.com:443/forums/thread/7978.aspx</link><pubDate>Tue, 18 Oct 2005 07:21:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7978</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7978</wfw:commentRss><description>Hi David,&lt;br /&gt;Yes, you can either change the data source to add a minOccurs=1 to the items you don't want deleted. In addition, you can write an OnBeforeChange handler that filters the add/remove events and returns true or false for those. I forget the value, but it should be documented in the SDK (or you can just try one and see. Good luck!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Optional Sections</title><link>https://www.infopathdev.com:443/forums/thread/5011.aspx</link><pubDate>Tue, 18 Oct 2005 07:07:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5011</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5011</wfw:commentRss><description>Optional sections within InfoPath have a context menu on the top left hand corner of the section which contains Copy, Cut and Paste - it's also displayed when the user right-clicks on a section.&lt;br /&gt;&lt;br /&gt;Unfortunately these controls allow users to alter the layout and data source of the form, which is undesirable (I have controls to achive this and don't want the user by-passing them).  In addition, pressing the backspace key when the optional section is highlighted will delete the entire section from both form and xml data source.&lt;br /&gt;&lt;br /&gt;If there some manner in which I can disable the user's ability to add/remove, copy/cut/paste optiona sections and yet retain the ability to add the section through managed code?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;David.&lt;br /&gt;</description></item></channel></rss>