<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Add an optionnal section with c#</title><link>https://www.infopathdev.com:443/forums/thread/13589.aspx</link><pubDate>Tue, 13 Sep 2005 13:37:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13589</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13589.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13589</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;&lt;br /&gt;Thanks for your answer I have found the article! I will try!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Add an optionnal section with c#</title><link>https://www.infopathdev.com:443/forums/thread/13588.aspx</link><pubDate>Tue, 13 Sep 2005 08:36:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13588</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13588.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13588</wfw:commentRss><description>Hi Thierry,&lt;br /&gt;Try the other way. Use xdExpression from the view to control the hide/show characteristics of the optional section. xdExpression calls a function in your code that returns true or false. This is the prescribed way to do what you want and you should find various threads and articles with examples if you search on the forum or website. Good luck!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Add an optionnal section with c#</title><link>https://www.infopathdev.com:443/forums/thread/12563.aspx</link><pubDate>Mon, 12 Sep 2005 08:02:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12563</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12563</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have the following problem:&lt;br /&gt;If I try to insert an optionnal section with this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;thisXDocument.View.ExecuteAction("xOptional::insert", "Bestellung_209");&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;but in the manifest you can read:&lt;br /&gt;&lt;pre&gt;&amp;lt;xsf:xmlToEdit name="Bestellung_209" item="/ns1:Case/ns1:Bestellung" &lt;br /&gt;container="/ns1:Case"&amp;gt;&lt;br /&gt;&amp;lt;xsf:editWith caption="Bestellung" xd:autogeneration&lt;br /&gt;="template" component="xOptional"&amp;gt;&lt;/pre&gt;&lt;br /&gt;and &lt;br /&gt;&lt;pre&gt;&amp;lt;xsf:button action="xOptional::insert" xmlToEdit="Bestellung_209" &lt;br /&gt;caption="Bestellung"&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;In infopath user mode you can insert this section why I can't with a c# code? What I'm doing wrong?&lt;br /&gt;&lt;br /&gt;Thanks for your help!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item></channel></rss>