<?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: Simple SaveAs and Close</title><link>https://www.infopathdev.com:443/forums/thread/14514.aspx</link><pubDate>Sat, 29 Apr 2006 06:40:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14514</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14514</wfw:commentRss><description>Yes.&lt;br /&gt;In InfoPath all values that are shown in the UI are stored somewhere in the XML, it can be in Main Dom or a secondary Dom.&lt;br /&gt;&lt;br /&gt;You can right click on the control and click "Show Datasource" then you will see the source if the data for that control in the taskpane.</description></item><item><title>Re: Simple SaveAs and Close</title><link>https://www.infopathdev.com:443/forums/thread/14513.aspx</link><pubDate>Fri, 28 Apr 2006 20:12:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14513</guid><dc:creator>havers_in_va</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14513.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14513</wfw:commentRss><description>We are using the InfoPath form to populate a SharePoint list. Does InfoPath save the value temporarily in XML until it is saved?</description></item><item><title>Re: Simple SaveAs and Close</title><link>https://www.infopathdev.com:443/forums/thread/14512.aspx</link><pubDate>Fri, 28 Apr 2006 18:16:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14512</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14512</wfw:commentRss><description>Hi Haver,&lt;br /&gt;Welcome to the Forum!&lt;br /&gt;In InfoPath you cannot refer to controls that are there in the UI Direcly from the code. &lt;br /&gt;In InfoPath controls are bound to XML fields and you get data from the XML fields and use them in the code.&lt;br /&gt;&lt;br /&gt;for ex:&lt;br /&gt;XDocument.DOM.selectSingleNode("/my:myFields/my:ProjectName").text;&lt;br /&gt;&lt;br /&gt;This line will get data from the XML for you.</description></item><item><title>Simple SaveAs and Close</title><link>https://www.infopathdev.com:443/forums/thread/12851.aspx</link><pubDate>Fri, 28 Apr 2006 17:56:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12851</guid><dc:creator>havers_in_va</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12851</wfw:commentRss><description>I am trying to create a button on a form that would simply save the document and close it. I was trying this:&lt;br /&gt;&lt;br /&gt;XDocument.SaveAs(XDocument.ProjectName.valueOf())&lt;br /&gt;Application.XDocuments.Close(XDocument)&lt;br /&gt;&lt;br /&gt;Where ProjectName is a field on my form.  I was trying to pass the value of the ProjectName field to the SaveAs method so that the form was saved with the file name set to the project name.&lt;br /&gt;&lt;br /&gt;Any help would be appreciated.</description></item></channel></rss>