<?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: i need to delete the infopath form as the form moved to another folder in sharepoint server.</title><link>https://www.infopathdev.com:443/forums/thread/49096.aspx</link><pubDate>Mon, 16 Nov 2009 11:24:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49096</guid><dc:creator>raghavendra.charyulu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49096</wfw:commentRss><description>&lt;p&gt;i need to delete the form using the code, so can you suggest in that manner.&lt;/p&gt;</description></item><item><title>Re: i need to delete the infopath form as the form moved to another folder in sharepoint server.</title><link>https://www.infopathdev.com:443/forums/thread/48912.aspx</link><pubDate>Wed, 11 Nov 2009 14:00:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48912</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48912</wfw:commentRss><description>&lt;p&gt;are you using infopath client or infopath form services to open your form, &lt;/p&gt;
&lt;p&gt;goto doc library -&amp;gt; settings -&amp;gt; &lt;span class="ms-sitemapdirectional"&gt;Versioning Settings&lt;/span&gt;&amp;nbsp;&amp;nbsp;-&amp;gt; Require documents to be checked out before they can be edited? (is this yes or no)&lt;/p&gt;</description></item><item><title>i need to delete the infopath form as the form moved to another folder in sharepoint server.</title><link>https://www.infopathdev.com:443/forums/thread/48673.aspx</link><pubDate>Thu, 05 Nov 2009 08:41:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48673</guid><dc:creator>raghavendra.charyulu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48673</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;i have used the code below:&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(MatchPath = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;CTRL1_15&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, EventType = &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathEventType&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.OnClick)]&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CTRL1_15_OnClick(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DocActionEvent&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;path = rootPath + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;ActionRequests/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;deleteConnection = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;TestDelete_Action&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;fileName = thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:Profile/my:file_name&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text;&lt;/p&gt;deleteFile(path + fileName + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;thisXDocument.UI.Alert(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;The form was submitted successfully. Please close window by clicking close in the top right hand corner&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;}&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; deleteFile(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; fileName)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;thisXDocument.GetDOM(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;UpdateListItemsConfig&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/UpdateListItemsConfig/SharepointDelete/Batch/Method/Field[@Name = &amp;#39;FileRef&amp;#39;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text = fileName;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;WebServiceAdapter2&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; deleteFileFromSharepoint = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;WebServiceAdapter2&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.DataAdapters[deleteConnection];&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;deleteFileFromSharepoint.Submit();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;when i click &amp;quot;CTRL1_15&amp;quot; button the forms moves from&lt;strong&gt; &amp;quot;ActionRequests&lt;/strong&gt;&amp;quot; folder to &lt;strong&gt;&amp;quot;History&amp;quot;&lt;/strong&gt; folder &lt;strong&gt;&lt;em&gt;but not getting deleted&lt;/em&gt;&lt;/strong&gt; in the &amp;quot;ActionRequests&amp;quot; folder. So anyone can look into this issue and help me in solving the problem.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Raghavendra &lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>