<?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: Is this possible through Custom Code?</title><link>https://www.infopathdev.com:443/forums/thread/65075.aspx</link><pubDate>Thu, 10 Mar 2011 21:00:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65075</guid><dc:creator>dlcj21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65075.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65075</wfw:commentRss><description>&lt;p&gt;Thanks Hilary.&amp;nbsp; I&amp;#39;m using IP2007.&lt;/p&gt;&lt;p&gt;I appreciate the links!&lt;/p&gt;</description></item><item><title>Re: Is this possible through Custom Code?</title><link>https://www.infopathdev.com:443/forums/thread/65073.aspx</link><pubDate>Thu, 10 Mar 2011 20:26:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65073</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65073</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Yup, what you are asking is absolutely possible (um, if an &amp;quot;option table&amp;quot; is a repeating table, bound to a repeating group? I&amp;#39;m not familiar with that term).&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb251747(v=office.12).aspx" target="_blank"&gt;Here&amp;#39;s&lt;/a&gt; a Hello World.&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t mention which version of InfoPath you are using? If IP 2003, you&amp;#39;ll need Visual Studio for managed code, if IP 2007 or 2010, you can use VSTA, in the case of 2010, VSTA is the only option.&lt;/p&gt;
&lt;p&gt;Here are few more links to get you started:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Office 2007&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa943357(v=office.12).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa943357(v=office.12).aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb380256(v=office.12).aspx"&gt;http://msdn.microsoft.com/en-us/library/bb380256(v=office.12).aspx&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Office 2010&lt;br /&gt;&lt;/strong&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa945282(v=Office.14).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa945282(v=Office.14).aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Is this possible through Custom Code?</title><link>https://www.infopathdev.com:443/forums/thread/65072.aspx</link><pubDate>Thu, 10 Mar 2011 20:07:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65072</guid><dc:creator>dlcj21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65072</wfw:commentRss><description>&lt;p&gt;Hi all, first off, I&amp;#39;m not looking for specific code here (unless you&amp;#39;re willing to help provide it) but I&amp;#39;m looking for information on if what I&amp;#39;m looking to do is possible through custom code?&lt;/p&gt;

&lt;p&gt;I&amp;#39;m pretty experienced when it comes to c# in .net.&amp;nbsp; I&amp;#39;m not very familiar with how c# works in infopath.&amp;nbsp; I was wondering if there were any resources where I can see a few simple examples, maybe something like a hello world in the code behind an infopath form?&lt;/p&gt;

&lt;p&gt;Now to my main question:&lt;/p&gt;

&lt;p&gt;In my form, I have several sections that need to be combined into a single table of values to be passed to a web service:&lt;/p&gt;

&lt;p&gt;
For example:&lt;br /&gt;
Section 1: &lt;br /&gt;
Field1&lt;br /&gt;
Field2&lt;br /&gt;
Section 2:&lt;br /&gt;
Field1&lt;br /&gt;
Field2&lt;br /&gt;
Section 3:&lt;br /&gt;
Field1&lt;br /&gt;
Field2&lt;/p&gt;

&lt;p&gt;What I&amp;#39;m looking to is take those 3 values and insert rows them into an option table with 3 columns that list the section value1 value2.  My desired output is something that looks like this:&lt;br /&gt;
Section1 Field1 Field2&lt;br /&gt;
Section2 Field1 Field2&lt;br /&gt;
Section3 Field1 Field2&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Is this possible through code?&lt;/p&gt;</description></item></channel></rss>