<?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: disable delete repeating section</title><link>https://www.infopathdev.com:443/forums/thread/22970.aspx</link><pubDate>Tue, 11 Sep 2007 15:55:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22970</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22970</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;I have a similar problem with my project.&lt;/p&gt;&lt;p&gt;In my form when a user delete a repeating section, a value from that repeating section must be used to add it on a sharepoint field (that&amp;#39;s because if the user deletes that, that quantity of the product must be again in the stock).&lt;/p&gt;&lt;p&gt;Can anybody tell me how to do that? I have no preferences about doing it with the GUI or with code.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: disable delete repeating section</title><link>https://www.infopathdev.com:443/forums/thread/22969.aspx</link><pubDate>Tue, 11 Sep 2007 15:17:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22969</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22969</wfw:commentRss><description>&lt;p&gt;Rereading this post I wanted to address one other point. The issue you&amp;#39;re having indeed may be because of the optional choice before the item. I would try a test with a very simple repeating schema to verify.&lt;/p&gt;</description></item><item><title>Re: disable delete repeating section</title><link>https://www.infopathdev.com:443/forums/thread/9706.aspx</link><pubDate>Thu, 25 May 2006 23:40:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9706</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9706.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9706</wfw:commentRss><description>Another way to achieve this is in code.  You would set in the OnBeforeChange event to check if there is only one element at that level and if so cancel the delete.  In the datasource task pane go to the node for that repeating section.  Then double-click to get the properties.  There go to Validation and Event Handlers.  From there select the OnBeforeChange event and you will be able to add the code from there.</description></item><item><title>Re: disable delete repeating section</title><link>https://www.infopathdev.com:443/forums/thread/9705.aspx</link><pubDate>Thu, 04 May 2006 07:58:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9705</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9705</wfw:commentRss><description>Hi and thanks for your reply Agni,&lt;br /&gt;&lt;br /&gt;that's a good idea but that don't seems to work. My schema:&lt;br /&gt;&lt;img src='http://zefix.powernet.ch/infopath/av.jpg' border='0' /&gt;&lt;br /&gt;If I do like you say make my element has non optionnal (minoccurs=1) I can always delete my last Texte in infopath.&lt;br /&gt;&lt;br /&gt;Are you any idea about why? It's because I have an optionnal choice before?&lt;br /&gt;&lt;br /&gt;If it's the case, sometimes I have an AVel with a Title element but with nothing else. So can I do somethings for change my schema and that still work?&lt;br /&gt;&lt;br /&gt;Any Idea?&lt;br /&gt;&lt;br /&gt;Thanks a lot!</description></item><item><title>Re: disable delete repeating section</title><link>https://www.infopathdev.com:443/forums/thread/9704.aspx</link><pubDate>Thu, 04 May 2006 07:22:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9704</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9704.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9704</wfw:commentRss><description>Hi Thierry, &lt;br /&gt;You can set minoccurs as 1 in the schema for "Texte" then you will not be able to delete the last node.</description></item><item><title>disable delete repeating section</title><link>https://www.infopathdev.com:443/forums/thread/5579.aspx</link><pubDate>Wed, 03 May 2006 07:10:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5579</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5579.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5579</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a very complexe situation that I cannot solve.&lt;br /&gt;&lt;br /&gt;here is an example of my structure:&lt;br /&gt;&lt;pre&gt; &amp;lt;AVel F14="0" fldID="123"&amp;gt;&lt;br /&gt;    &amp;lt;Title&amp;gt;SHAB-Zitat&amp;lt;/Title&amp;gt;&lt;br /&gt;    &amp;lt;Texte&amp;gt;&lt;br /&gt;      &amp;lt;Text&amp;gt;(SHAB Nr. 63 vom 31.03.1999, S. 2111)&amp;lt;/Text&amp;gt;&lt;br /&gt;      &amp;lt;choixM/&amp;gt;&lt;br /&gt;    &amp;lt;/Texte&amp;gt;&lt;br /&gt;    &amp;lt;Texte&amp;gt;&lt;br /&gt;      &amp;lt;Text&amp;gt;Verein&amp;lt;/Text&amp;gt;&lt;br /&gt;      &amp;lt;choixM/&amp;gt;&lt;br /&gt;    &amp;lt;/Texte&amp;gt;&lt;br /&gt;  &amp;lt;/AVel&amp;gt;&lt;/pre&gt;&lt;br /&gt;My Texte is a repeating section and I want to disable the delete possibility if there is only one element of Texte(but the user need to be able to insert another occurence). But if there are multiple Texte I want to be able to delete the other, but one Texte element must stay in the form! &lt;br /&gt;&lt;br /&gt;In the OnbeforeChange Event if I use e.Source or e.Site, I can't select AVel for see if there is one or multiple Texte. Infopath send a null value!&lt;br /&gt;&lt;br /&gt;AVel is multiple too so I cant use thisXDocument because I dont know on which I am. The only way to know is to take the fldID on AVel but If I cant select AVel I can't select fldID too. &lt;br /&gt;&lt;br /&gt;How I can made? There is a way with conditionnal formating it's possible but that disable the insert too. and I dont want this!&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item></channel></rss>