<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating Section that pulls from SharePoint and also accepts user input</title><link>https://www.infopathdev.com:443/forums/thread/53805.aspx</link><pubDate>Sat, 17 Apr 2010 12:02:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53805</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53805</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Most controls on a form are bound to data source fields, whether in the main data source or in a secondary data source. Buttons, expression boxes and hyperlinks are exceptions...&lt;/p&gt;
&lt;p&gt;But it isn&amp;#39;t like Windows Form development -- you can&amp;#39;t really programatically create a control. If, for example, you have a repeating table on a form that is bound to a repeating group called &amp;quot;Tasks&amp;quot;, if you programatically add nodes to the Tasks group, your table will have more rows on your form.&lt;/p&gt;
&lt;p&gt;If the questions you want are on SharePoint, you may want to copy the data from your SharePoint data source into your main data source (I&amp;#39;ll quickly suggest you give &lt;a href="http://www.qdabra.com/en/products/qRules.aspx"&gt;qRules&lt;/a&gt; a try -- then you wouldn&amp;#39;t have to write any code at all). That way your questions and answers are stored in the form&amp;#39;s XML when it is saved.&lt;/p&gt;
&lt;p&gt;Here are some other resources that may help you:&lt;/p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa946563(VS.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa946563(VS.80).aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa945227(VS.80).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa945227(VS.80).aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blogs.msdn.com/infopath/archive/2007/03/09/infopath-2007-training-labs.aspx"&gt;http://blogs.msdn.com/infopath/archive/2007/03/09/infopath-2007-training-labs.aspx&lt;/a&gt;</description></item><item><title>Re: Repeating Section that pulls from SharePoint and also accepts user input</title><link>https://www.infopathdev.com:443/forums/thread/53777.aspx</link><pubDate>Fri, 16 Apr 2010 15:51:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53777</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53777</wfw:commentRss><description>&lt;p&gt;So I did some more searching and it appears as though I can add controls to a page, but they need to be &amp;quot;backed&amp;quot; by the InfoPath schema.&amp;nbsp; As i understand this as long as the information exists somewhere (SharePoint data connection, XML, etc) you can create a control programatically.&lt;/p&gt;
&lt;p&gt;Are there any resources you know of to help me out?&lt;/p&gt;
&lt;p&gt;How do I programatically traverse the repeating group nodes?&amp;nbsp; My thinking is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;I create an XML document that has one node for every answer&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;I create a repeating group on the page&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Programatically I traverse through all the answers, in one instance of the repeating group I add teh text boxes for all my questions (read only)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Once the question information is in this instance of the repeating group, I can then add the YES / NO control which is tried to my XML document.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;My issue is finding code examples, or a good API.&amp;nbsp; This is the major hurdle with InfoPath developement for me.&amp;nbsp; Some languages, like Java, a 5 minute google gives you infinite information :( &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I have included an image of my form for your reference.&amp;nbsp; Everything here works (e.g. pulling info off SP)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://img63.imageshack.us/img63/9919/exformrz3a8zj8necw3k.png"&gt;http://img63.imageshack.us/img63/9919/exformrz3a8zj8necw3k.png&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Repeating Section that pulls from SharePoint and also accepts user input</title><link>https://www.infopathdev.com:443/forums/thread/53585.aspx</link><pubDate>Mon, 12 Apr 2010 14:47:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53585</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53585</wfw:commentRss><description>&lt;p&gt;It appears as though what I want to do isn&amp;#39;t entirely possible.&amp;nbsp; I was attempting this the other day and, although a learned a lot about the c# side of InfoPath, I stumbled upon this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b98a39e2-d0ce-458a-93bf-66e7f991b9bb"&gt;http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b98a39e2-d0ce-458a-93bf-66e7f991b9bb&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It claims that it is not possible (or next to impossible) to dynamically add controls to the page programmatically (e.g. a text field, or radio button)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;How valid is their claim?&lt;/p&gt;</description></item><item><title>Re: Repeating Section that pulls from SharePoint and also accepts user input</title><link>https://www.infopathdev.com:443/forums/thread/53306.aspx</link><pubDate>Thu, 01 Apr 2010 17:56:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53306</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53306</wfw:commentRss><description>&lt;p&gt;Thanks for the help, my issue that I am having is not with submitting data to the SharePoint, or pulling data off the SharePoint.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My problem is associating input controls with a question.&lt;/p&gt;
&lt;p&gt;Each &amp;quot;repeating section&amp;quot; is effectively one row in the SharePoint list.&amp;nbsp; I get pieces of data (e.g. Question #, Question Title, Question Body) and map them to fields in the form (text fields for all three questions).&amp;nbsp; In that repeating section I now want to have a drop-down, or radio buttons, so the user can select either YES or NO to answer that particular question.&lt;/p&gt;
&lt;p&gt;My problem is adding those buttons to the repeating section, it continually says I can&amp;#39;t add a singleton field into a repeating section, but any attempt to map that input field to a repeating table or value does not function as I would like it to.&lt;/p&gt;
&lt;p&gt;Is my only recourse to pull all of the nodes off the SharePoint site (in code), and construct a form manually?&lt;/p&gt;</description></item><item><title>Re: Repeating Section that pulls from SharePoint and also accepts user input</title><link>https://www.infopathdev.com:443/forums/thread/53175.aspx</link><pubDate>Mon, 29 Mar 2010 08:49:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53175</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53175.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53175</wfw:commentRss><description>&lt;p&gt;Hi rZ3A8zj8neCW3K,&lt;/p&gt;
&lt;p&gt;We get asked this question a lot in many different forms and it&amp;#39;s why we have developed the qRules library (free trial now available - see ads on top and bottom). qRules 2.1 supports pushing data to SharePoint lists from an InfoPath form. You can also use it to pull data from a SharePoint list and copy the contents to your main data source. &lt;/p&gt;
&lt;p&gt;The other approach would be to use SQL. We have developed many data-driven survey solutions that leverage SQL to pull questions in and push answers out. Versioning is key in those solutions. At any rate, if you have access to SQL, you should use it. SharePoint lists have limitations. &lt;/p&gt;
&lt;p&gt;Happy trails!&lt;/p&gt;</description></item><item><title>Repeating Section that pulls from SharePoint and also accepts user input</title><link>https://www.infopathdev.com:443/forums/thread/53145.aspx</link><pubDate>Fri, 26 Mar 2010 14:31:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53145</guid><dc:creator>rZ3A8zj8neCW3K</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53145</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is my problem:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a list in sharepoint that has X many items.&amp;nbsp; In InfoPath I want to generate a dynamic row that pulls down all those items from the SharePoint list and populates the text values for each row into a repeating section.&amp;nbsp; An example is below in text:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Question #: 1.0&lt;br /&gt;Question: Is your favourite colour blue?&lt;br /&gt;Answer: [Yes] [No]&lt;br /&gt;&lt;br /&gt;Question #: 1.1&lt;br /&gt;Question: Is the sky blue?&lt;br /&gt;Answer: [Yes] [No]&lt;/p&gt;
&lt;p&gt;so the question # and question are pulled off SharePoint.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am unable to bind the drop-down, or radio buttons, that I attempt to use for the YES/NO portion.&amp;nbsp; I cannot bind user input inside of a repeating section to another repeating table.&lt;/p&gt;
&lt;p&gt;Eventually what I want to do is have a master table I generate, when a user fills a form out and hits submit it pushes this information to the table:&lt;/p&gt;
&lt;p&gt;Form Version, Question 1 answer, Question 2 answer... if a column for a question doesnt exist it&amp;#39;s created, and the form version helps track what the questions are&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t capture this user input... I&amp;#39;m comfortable coding but I need some direction first.&amp;nbsp; I&amp;#39;ve done the second part (submitting answers to a List) with the exception of checking to see if a column exists and if not creating it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the help, I&amp;#39;ve looked around here and on google, I&amp;#39;ve posted elsewhere but a lot of the questions here seem advanced so hopefully what I&amp;#39;ve asked makes sense and there&amp;#39;s an easy fix!&lt;/p&gt;</description></item></channel></rss>