<?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: Pre-Populating A Repeating Field Upon First Use</title><link>https://www.infopathdev.com:443/forums/thread/57061.aspx</link><pubDate>Sat, 17 Jul 2010 14:19:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57061</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57061</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve built a &amp;#39;custom questionairre&amp;#39; form template which may do what you want. I&amp;#39;ll get it from work next week and post it.&lt;/p&gt;</description></item><item><title>Re: Pre-Populating A Repeating Field Upon First Use</title><link>https://www.infopathdev.com:443/forums/thread/53501.aspx</link><pubDate>Thu, 08 Apr 2010 21:56:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53501</guid><dc:creator>dhillenb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53501</wfw:commentRss><description>&lt;p&gt;Patrick - This concept sounds like it is something that I can use as well. I my case, I am trying to poll responses from managers - the challenge for me is each manager is responsible for one or more &amp;quot;topics&amp;quot; (for lack of a better word) and needs to complete a series of questions for each &amp;quot;topic&amp;quot;. &amp;nbsp;Imagine a table with topics across the top and questions on the side.&amp;nbsp; The questions are static, however the number of topics vary by manager and all topics are unique across the entire population.&amp;nbsp; Ideally, each manager would open the form and see&amp;nbsp;several&amp;nbsp;repeating sections listing their topics - each section would have several pre-populated, protected, &amp;nbsp;text fields related to the topic, followed by a set of questions and related input fields.&amp;nbsp; For example: &lt;/p&gt;
&lt;p&gt;__________________________&lt;/p&gt;
&lt;p&gt;Manager: John Wayne&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--repeating section--&lt;/p&gt;
&lt;p&gt;Topic ID: T-001 &amp;lt;prepopulated from data source&amp;gt;&lt;/p&gt;
&lt;p&gt;Topic Description: __This is Topic #1__ &amp;lt;pre-populated from data source - tied to Topic ID&amp;gt;&lt;/p&gt;
&lt;p&gt;Question 1:&amp;nbsp; Is this&amp;nbsp;topic interesting ?: _________ &amp;lt;blank, pending response from JW (user) &amp;gt;&lt;/p&gt;
&lt;p&gt;Question 2:&amp;nbsp; Why did you choose this topic?: _________ &amp;lt;blank, pending response from JW (user) &amp;gt;&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;Topic ID: T-002 &amp;lt;prepopulated from data source&amp;gt;&lt;/p&gt;
&lt;p&gt;Topic Description: __This is Topic #2__ &amp;lt;pre-populated from data source - tied to Topic ID&amp;gt;&lt;/p&gt;
&lt;p&gt;Question 1:&amp;nbsp; Is this&amp;nbsp;topic interesting ?: _________ &amp;lt;blank, pending response from JW (user) &amp;gt;&lt;/p&gt;
&lt;p&gt;Question 2:&amp;nbsp; Why did you choose this topic?: _________ &amp;lt;blank, pending response from JW (user) &amp;gt;&lt;/p&gt;
&lt;p&gt;... and so on...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--end repeating section--&lt;/p&gt;
&lt;p&gt;Is this possible?&lt;/p&gt;</description></item><item><title>Re: Pre-Populating A Repeating Field Upon First Use</title><link>https://www.infopathdev.com:443/forums/thread/51869.aspx</link><pubDate>Wed, 17 Feb 2010 18:16:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51869</guid><dc:creator>BodhiOS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51869.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=51869</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;Well I&amp;#39;ve now worked around this particular problem in a not so elegant way, but at least it works. My solution was to create a secondary view that contained the repeating question section. In this section I have a field that has the following default value: &lt;/p&gt;
&lt;p&gt;count(preceding-sibling::*/IDGenerator) + 1&lt;/p&gt;
&lt;p&gt;This field only works correctly when the &amp;quot;Update this value when the results...&amp;quot; check box is marked for some reason so I can&amp;#39;t rely on this field staying static. I created another secondary ID field which is set to update once and effectively stores the sequential question ID the first time the form loads.&lt;/p&gt;
&lt;p&gt;My next step was to change the &amp;quot;Default Value&amp;quot; of the question section from 1 to 1000. This was the painful part....manually adding 999 additional questions.&lt;/p&gt;
&lt;p&gt;When the user opens the form, they are prompted to populate some initial dropdowns and then are presented with relevant questions. Something odd I noticed was that by using Conditional Formatting to hide irrelevant questions, the content of the legitimate questions would occasionally become corrupt and display incorrectly. The way I solved this was to create a section inside of the repeating section and have it do the Conditional Formatting instead of the repeating section. I have no idea why this works but it seems to have done the job.&lt;/p&gt;
&lt;p&gt;My next problem at the moment is displaying and filtering references from a secondary data source inside of each question section. My post with the details can be found a the below link so if you have any suggestions I would really appreciate it.&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;a href="http://www.infopathdev.com/forums/t/14581.aspx"&gt;&lt;u&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;http://www.infopathdev.com/forums/t/14581.aspx&lt;/u&gt;&lt;/font&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Pre-Populating A Repeating Field Upon First Use</title><link>https://www.infopathdev.com:443/forums/thread/51705.aspx</link><pubDate>Fri, 12 Feb 2010 13:26:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51705</guid><dc:creator>BodhiOS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=51705</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I would really appreciate any examples you could provide.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;&lt;p&gt;--Scott &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pre-Populating A Repeating Field Upon First Use</title><link>https://www.infopathdev.com:443/forums/thread/51698.aspx</link><pubDate>Fri, 12 Feb 2010 08:46:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51698</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=51698</wfw:commentRss><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;You should consider using two form templates of matching schemas. One form is used to generate the &amp;quot;default values&amp;quot; for the other one. So that when they double click a form saved from XSN #1 it opens up a form of XSN #2 with prefilled questions. In other words, the questions are data-driven. I can show you an example of the concept. We have done this kind of thing many times. Let me know if you want a demo. Getting the schema correct is the most important thing. &lt;/p&gt;</description></item><item><title>Pre-Populating A Repeating Field Upon First Use</title><link>https://www.infopathdev.com:443/forums/thread/51644.aspx</link><pubDate>Wed, 10 Feb 2010 17:25:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51644</guid><dc:creator>BodhiOS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=51644</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;First of all, I wanted to say that these forums have helped me immensely in the past and I wanted to thank you all. &lt;br /&gt;&lt;br /&gt;I&amp;#39;m currently working on an annual building safety inspection form that uses multiple SharePoint lists as secondary data sources.&amp;nbsp; The primary purpose of the form is to allow an inspector to choose some basic &amp;quot;myHeader&amp;quot; drop-downs, such as building type/number, and then provide them with relevant questions, allowing the inspector to review the citations associated with that question and document their findings.&amp;nbsp; The form will also allow the inspector to view historical information and continue to add findings to existing documents.&amp;nbsp; I have no problem pulling in the information from the secondary data sources, but I do have an issue documenting the associated findings for each question.&amp;nbsp; I&amp;#39;m planning to submit the form to a form library so I don&amp;#39;t need to actually store any of the secondary data inside my form.&lt;br /&gt;&lt;br /&gt;My proposed solution is to populate a repeating &amp;quot;myQuestionID&amp;quot; field in my primary data source with the numbers 1-1000, enabling a unique association with all of the almost 1000 questions in the question list.&amp;nbsp; This action will only be performed the first time a new form loads for a building to ensure that all relevant questions are populated on the form.&amp;nbsp; The myQuestionID will be part of a repeating section that will contain the following:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Expression Box containing Question associated with myQuestionID&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Expression Box containing Citations associated with myQuestionID&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Repeat Table Containing:&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;Findings Field&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;Finding Date&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;Inspector&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;Other Ancillary Data....&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;Essentially, this myQuestionID field will allow me to query secondary data sources and record inspector responses.&amp;nbsp; As a side note, I&amp;#39;m currently using InfoPath 2003 due to the glacial pace at which the government updates their software.&amp;nbsp; We&amp;#39;re planning to get InfoPath 2007 next month but I&amp;#39;m trying to work with what I currently have.&amp;nbsp; I know that this is a lot of background information but I wanted to try to share my rationale for approaching the problem in this manor.&amp;nbsp; Please feel free to let me know if my approach is off or if you have any suggestions.&amp;nbsp; Any help would be greatly appreciated because I&amp;#39;m running out of ways to approach this problem.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;--Scott&lt;/p&gt;</description></item></channel></rss>