<?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: How to Show/Hide File Attachments Fields in Repeating Tables (With Sections?)</title><link>https://www.infopathdev.com:443/forums/thread/57054.aspx</link><pubDate>Sat, 17 Jul 2010 13:44:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57054</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57054</wfw:commentRss><description>&lt;p&gt;Two attachment controls bound to the same field. Put them both in the same place in the repeating section/table. Make one &amp;#39;read only&amp;#39;. Put conditional formatting on them to make the &amp;#39;read only&amp;#39; one invisible when the condition isn&amp;#39;t met and the &amp;#39;non-read only&amp;#39; one invisible when the condition is met. No extra sections should be needed.&lt;/p&gt;</description></item><item><title>Re: How to Show/Hide File Attachments Fields in Repeating Tables (With Sections?)</title><link>https://www.infopathdev.com:443/forums/thread/55257.aspx</link><pubDate>Mon, 24 May 2010 15:30:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55257</guid><dc:creator>genetze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55257.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55257</wfw:commentRss><description>&lt;p&gt;it&amp;#39;s not a good ideia because it says i cannot repeat there and it appears at the right top a red ball with an (x) inside, like an&amp;nbsp;error... well it is an error and it will not let me publish the form. Now that i&amp;#39;am trying to use a field inside the repeating table(datasource and design)&amp;nbsp;as a section it says unbound(unable to store data).&lt;/p&gt;</description></item><item><title>Re: How to Show/Hide File Attachments Fields in Repeating Tables (With Sections?)</title><link>https://www.infopathdev.com:443/forums/thread/55256.aspx</link><pubDate>Mon, 24 May 2010 15:25:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55256</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55256.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55256</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Why is it not a good idea?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to Show/Hide File Attachments Fields in Repeating Tables (With Sections?)</title><link>https://www.infopathdev.com:443/forums/thread/55253.aspx</link><pubDate>Mon, 24 May 2010 15:15:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55253</guid><dc:creator>genetze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55253.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55253</wfw:commentRss><description>&lt;p&gt;Thanks for trying to help... well bound to the same attachment node a section is not a good ideia... but i&amp;#39;am trying to have a node inside the repeating table group and for one it worked well but when i tried to do the same method to other repeating table... kabong... broken form... so i&amp;#39;ll keep trying&lt;/p&gt;
&lt;p&gt;Best Regards, &lt;/p&gt;
&lt;p&gt;Ricardo Pinto (Junior Developer)&lt;/p&gt;</description></item><item><title>Re: How to Show/Hide File Attachments Fields in Repeating Tables (With Sections?)</title><link>https://www.infopathdev.com:443/forums/thread/55248.aspx</link><pubDate>Mon, 24 May 2010 13:37:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55248</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55248</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;A section control can be bound to anything.&amp;nbsp; You don&amp;#39;t need to add a node in your data source just for the section control.&amp;nbsp; How about binding it to the same node as the file attachment control?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Show/Hide File Attachments Fields in Repeating Tables (With Sections?)</title><link>https://www.infopathdev.com:443/forums/thread/55246.aspx</link><pubDate>Mon, 24 May 2010 12:16:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55246</guid><dc:creator>genetze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55246</wfw:commentRss><description>&lt;p&gt;Hi all, i&amp;#39;am having a little issue and a i didn&amp;#39;t find an answer to this during my investigation. I have web-browser form with&amp;nbsp;a repeating table with attachment fields... what i want to do is if a row has their request answered (based on a field controled in the row) i want to make the attachment field read only. The Attachment Field is a repeating field so i really need sections to hide that fields. I tried to put a section in data source outside the repeating table but inside the form design i put that section inside the repeating table... and that is a problem because when i write a row to the repeating&amp;nbsp;table&amp;nbsp;via code with a button... the field disappear or every time i had a row he adds&amp;nbsp;a new&amp;nbsp;section of the attachment&amp;nbsp;in each row.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;am adding a row to the repeating table with the following code:&lt;/p&gt;
&lt;p&gt;using (XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:ParecerExterno/my:TblPedIntsSec&amp;quot;, NamespaceManager).AppendChild())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteStartElement(&amp;quot;TblPedInts&amp;quot;, myNamespace);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;dtPedInt&amp;quot;, myNamespace, DateTime.Now.ToString(&amp;quot;O&amp;quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;DesPedInt&amp;quot;, myNamespace, &amp;quot;&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;DestPedInt&amp;quot;, myNamespace, nomePedido);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;DocPedInt&amp;quot;, myNamespace, &amp;quot;&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;ControlPedInt&amp;quot;, myNamespace, &amp;quot;0&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;dtEntradaPedInt&amp;quot;, myNamespace, String.Empty);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;ParInterno&amp;quot;, myNamespace, &amp;quot;&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;RespostaPedInt&amp;quot;, myNamespace, &amp;quot;&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteEndElement();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //writer.WriteNode(&amp;quot;CountPedInt&amp;quot;, true);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.Close();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think that a way to do this is to have a section inside the repeating table group and then write that group with xml writer... maybe instead of writer.WriteElementString&amp;nbsp;there is any function to write a group... i don&amp;#39;t know... &lt;/p&gt;
&lt;p&gt;Can anyone help me with this please?... sorry for my bad english&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>