<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Prepopulation of infopath form (published as content type)</title><link>https://www.infopathdev.com:443/forums/thread/58190.aspx</link><pubDate>Fri, 20 Aug 2010 08:17:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58190</guid><dc:creator>mathieur01</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=58190</wfw:commentRss><description>Hello everyone
&lt;br /&gt;
&lt;br /&gt;
The problem I am having seems to have been posted quite a few times, however I haven&amp;#39;t found any correct solution.
&lt;br /&gt;
&lt;br /&gt;
Here is the context.
&lt;br /&gt;
&lt;br /&gt;
I have an infopath 2007 form, with lots of code behind, published on a sharepoint 2007 server as a content-type, to a whole bunch of different document libraries.
&lt;br /&gt;
&lt;br /&gt;
This form is then instanciated in those libraries by doing a New-&amp;gt;MyForm.
&lt;br /&gt;
&lt;br /&gt;
Now my goal is to populate the form automatically with the originating library name.
&lt;br /&gt;
&lt;br /&gt;
From what I have read everywhere it seems impossible to do this a standard way, with the Infopath Client (seems possible however with browser forms using XDocument).
&lt;br /&gt;&lt;br /&gt;
My idea was to create for each site using this content type a site column containing the value I want, and then instanciating the Infopath form and reading this value in the form. It is a procedure frequently used with Word documents attached as content types, we can get back some specific site columns in the document. I thought this would be possible with Infopath, but I am totally failing on this point, as I can&amp;#39;t seem to find a way to pass the site column value to my form.
&lt;br /&gt;
&lt;br /&gt;
If any of you have any idea on how to achieve this with I&amp;#39;ll be glad to hear from you :)
&lt;br /&gt;
I have also considered changing the way the form is generated, getting rid of the &amp;quot;new&amp;quot; feature and using instead a specific button with associated code behind (on sharepoint) and prefill the values programmatically, but this approach seems like a behemoth for such as simple thing :(
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for your time
Matt</description></item></channel></rss>