<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Autofill feature</title><link>https://www.infopathdev.com:443/forums/thread/62881.aspx</link><pubDate>Fri, 07 Jan 2011 04:25:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62881</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62881.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62881</wfw:commentRss><description>&lt;p&gt;Hi TechPundit,&lt;/p&gt;
&lt;p&gt;We have a training module that specifically talks about how to populate fields from another form. There are many techniques. You seem to be following the &amp;quot;Config File&amp;quot; paradigm. Your first form is config data for your other forms. Easy to do this. Check out Mel&amp;#39;s blog for more info: &lt;a href="http://www.infopathdev.com/blogs/mel_balsamo/archive/2010/12/11/free-training-data-driven-design-using-xml-files-to-configure-other-forms-lab-2.aspx"&gt;http://www.infopathdev.com/blogs/mel_balsamo/archive/2010/12/11/free-training-data-driven-design-using-xml-files-to-configure-other-forms-lab-2.aspx&lt;/a&gt;. If you have a lot of data and you are worried about pulling in to much data, you are not using the &amp;quot;config file&amp;quot; paradigm but rather just an XML-to-XML business process with input parameters. We have training on that too. You can pass parameters to a new InfoPath forms from your first form using qRules in combination with the input parameters format for InfoPath (&lt;a href="http://server/site/library/forms/template.xsn?a=1&amp;amp;b=2"&gt;http://server/site/library/forms/template.xsn?a=1&amp;amp;b=2&lt;/a&gt;&amp;nbsp;where template.xsn is your&amp;nbsp;target destination form and&amp;nbsp;&amp;#39;a&amp;#39; and &amp;#39;b&amp;#39; become the parameters. qRules allows you to read those and set fields in your form. Worfklow can do this too but it is asynchronous and may not be a good user experience (since it doesn&amp;#39;t open on click, but you could prepop target forms I suppose). &lt;/p&gt;
&lt;p&gt;To generate a unique identifier, qRules has a command called GenerateGUID that you can use. You could also use date-time stamp and user but as you say this isn&amp;#39;t guaranteed for browser-based forms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Autofill feature</title><link>https://www.infopathdev.com:443/forums/thread/62861.aspx</link><pubDate>Thu, 06 Jan 2011 17:24:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62861</guid><dc:creator>TechPundit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62861.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62861</wfw:commentRss><description>First of All, Thank you for your time, Hilary, really appreciate it.

&lt;p&gt;Q. Where is your first form storing its data?&lt;/p&gt;&lt;p&gt;&amp;nbsp;A. SharePoint 2007


&lt;/p&gt;&lt;p&gt;For example, the first form has a unique identifier called: DNumber. 
When the first form  (lets call the first form , the CENTRAL form) is submitted, the value in  this field gets submitted to Sharepoint List.

All other forms have a similar field that will have this unique value in a field, just that the fieldname will be different.

&lt;/p&gt;&lt;p&gt;What I want to be able to do is that, this field (the unique identifier) should autopopulate in all other forms when they are opened from the first form. &lt;/p&gt;&lt;p&gt;How can I do that? 

I had tried to set it up in a way that worked but, with a catch. So when the CENTRAL form opens it stores 2 pieces of information in hidden fields, username and substring(now(),1,16)

 When the Form1 Button is clicked on the CENTRAL form, it opens Form 1 and fetches the DNumber from the sharepoint list, filtered by the username and timestamp obtained by substring(now(),1,16. The problem with this method is that sometimes the username and/or the timestamp function does not work if the computer is slow or sharepoint server is slow and then autopopulation does not work. (9 out of times it will work, but you know how it is tough to convince users, even if the errors comes up just 1 out of 10 times)

I wonder if the solution might be generation of a random number. Is there a way to randomly generate a unique number in infopath? 

I am primarily using Infopath 2007 , but I also have Infopath 2010  on another computer (still learning though).&lt;/p&gt;</description></item><item><title>Re: Autofill feature</title><link>https://www.infopathdev.com:443/forums/thread/62858.aspx</link><pubDate>Thu, 06 Jan 2011 16:11:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62858</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62858.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62858</wfw:commentRss><description>&lt;p&gt;Where is your first form storing its data? &lt;/p&gt;&lt;p&gt;Generally, you need for any form that pulls info from a data source to be set up to query the data source and then copy the information into the correct fields. The specifics of how to approach this depends on factors like where the data comes from, what versions of InfoPath (and SharePoint, if that is part of your solution) you are using, and so on.&lt;/p&gt;</description></item><item><title>Re: Autofill feature</title><link>https://www.infopathdev.com:443/forums/thread/62853.aspx</link><pubDate>Thu, 06 Jan 2011 15:56:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62853</guid><dc:creator>TechPundit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62853</wfw:commentRss><description>any ideas for this, yet</description></item><item><title>Autofill feature</title><link>https://www.infopathdev.com:443/forums/thread/62607.aspx</link><pubDate>Tue, 28 Dec 2010 14:46:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62607</guid><dc:creator>TechPundit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62607.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=62607</wfw:commentRss><description>I am creating some new forms. When the users fill out the first form ,  they save it.  Then, I have a header section (header, as in , a section at the start in each form that has the same information) in every other form that should be automatically be pulled from the first form. What is the best way to go about this. The first form has a unique field. Should I search for those fields that I need to autopopulate , on the basis of the unique field in the first form? Can someone describe a good method to set up autopopulating a header section.</description></item></channel></rss>