<?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: Submit to SP document library with Title pre-filled</title><link>https://www.infopathdev.com:443/forums/thread/83596.aspx</link><pubDate>Thu, 18 Oct 2012 10:41:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83596</guid><dc:creator>MiloM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=83596</wfw:commentRss><description>Thanks a lot, this is exactly what I was looking for :)</description></item><item><title>Re: Submit to SP document library with Title pre-filled</title><link>https://www.infopathdev.com:443/forums/thread/83595.aspx</link><pubDate>Thu, 18 Oct 2012 10:12:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83595</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=83595</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Submit data connection?&lt;/p&gt;&lt;p&gt;The full path to Infopath XML data form file one can get in code-behind with:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;this.Uri in C#&lt;/li&gt;&lt;li&gt;Me.Uri in VB.NET&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;You can then extract a file name from with substring operations &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Submit to SP document library with Title pre-filled</title><link>https://www.infopathdev.com:443/forums/thread/83594.aspx</link><pubDate>Thu, 18 Oct 2012 09:13:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83594</guid><dc:creator>MiloM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=83594</wfw:commentRss><description>&lt;p&gt;Hi Gennady,&lt;/p&gt;&lt;p&gt;sorry for not being clear enough. I submit to SP document library (using Data Connection). I would basicaly want to use file name for calculation (to extract some information from name), but unlike Title field this is not available for calculation. I don&amp;#39;t need Title to be shown, but I&amp;#39;m looking for the way how to automatically include file name there.&lt;/p&gt;&lt;p&gt;I have promoted needed fields in the template earlier, but document library doesn&amp;#39;t support this (or I don&amp;#39;t know about it). That is why I&amp;#39;m trying to get the same result through file name (form&amp;nbsp;is&amp;nbsp;submitted with name as combination of these fields).&lt;/p&gt;</description></item><item><title>Re: Submit to SP document library with Title pre-filled</title><link>https://www.infopathdev.com:443/forums/thread/83593.aspx</link><pubDate>Thu, 18 Oct 2012 08:39:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83593</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=83593</wfw:commentRss><description>&lt;p&gt;I did not grasp whether you are talking about Title field in document library or in a SP list. and how you submit from document library to SP list Title field&lt;/p&gt;&lt;p&gt;If you are submitting to a SP list Title field then it is available for calculations. &amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you are talking about Title field in a sharepoint document library then it is OOTB and by default is not required and not shown in a sharepoint document (or form) library.&lt;br /&gt;Why are you showing and using it?&lt;br /&gt;&lt;strike&gt;Create in and promote a field  Infopath template&amp;nbsp; that you will be able to use as calculated field&lt;/strike&gt; Ooops, this is not possible for a sharepoint document library &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Submit to SP document library with Title pre-filled</title><link>https://www.infopathdev.com:443/forums/thread/83590.aspx</link><pubDate>Thu, 18 Oct 2012 06:46:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83590</guid><dc:creator>MiloM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83590.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=83590</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;because of historical reasons, we store Infopath forms in SP document library (and this cannot be changed in near future). &lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to add some calculated columns in the SP list - the problem is that when form is submitted via data connection&amp;nbsp;it leaves column Title blank (and column Name cannot be used in calculation). But if I upload document/form manually, Title is automatically pre-filled (i.e. it equals to the file name) which is exactly&amp;nbsp;what I would like to achieve by vb.net&amp;nbsp;code for submit but I haven&amp;#39;t been able to find out how.&lt;/p&gt;&lt;p&gt;I&amp;#39;m using Infopath 2010 and SP 2010.&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;</description></item></channel></rss>