<?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: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39520.aspx</link><pubDate>Fri, 13 Mar 2009 18:28:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39520</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39520</wfw:commentRss><description>&lt;p&gt;Wonderful, I&amp;#39;m so glad you figured it out, and thank you for posting your solution for others.&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39516.aspx</link><pubDate>Fri, 13 Mar 2009 17:11:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39516</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39516</wfw:commentRss><description>&lt;p&gt;F%#@ yes!&amp;nbsp; Got it figured out from some code Matt Faus posted about adding a confirmation to a submit button, not sure why I didn&amp;#39;t find it before.&amp;nbsp; Anyway, here it is in case anyone else wants to know.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;var response = XDocument.UI.Confirm(&amp;quot;Do you really want to delete?&amp;quot;,4); &lt;/p&gt;
&lt;p&gt;if(response == 6) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;var thisNode = eventObj.Source.selectSingleNode(&amp;quot;.&amp;quot;); &lt;/p&gt;
&lt;p&gt;thisNode.parentNode.removeChild(thisNode); &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;else &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;return;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers for all your help, I hope this is the last time I&amp;#39;ll have to do this!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39512.aspx</link><pubDate>Fri, 13 Mar 2009 15:42:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39512</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39512</wfw:commentRss><description>&lt;p&gt;No, I&amp;#39;m sorry -- I&amp;#39;m not terribly JScript savvy, I use C# -- so I was just going by what I could find online....&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39505.aspx</link><pubDate>Fri, 13 Mar 2009 14:42:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39505</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39505</wfw:commentRss><description>&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39362.aspx</link><pubDate>Tue, 10 Mar 2009 12:04:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39362</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39362</wfw:commentRss><description>&lt;p&gt;Hi Hilary, thanks for the help.&amp;nbsp; This is the code that I have so far. I know the delete code works, I had it working before I tried to add the confirmation.&amp;nbsp;&amp;nbsp;&amp;nbsp;But I still get a run-time error saying that there is an object expected at line 25.&amp;nbsp; That is the line that&amp;#39;s underlined.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;function CTRL287_5::OnClick(eventObj) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;&lt;u&gt;var answer = confirm(&amp;quot;Do you really want to delete?&amp;quot;);&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if (answer == true) &lt;/p&gt;
&lt;p&gt;{&amp;nbsp; &lt;/p&gt;
&lt;p&gt;var thisNode = eventObj.Source.selectSingleNode(&amp;quot;.&amp;quot;); &lt;/p&gt;
&lt;p&gt;thisNode.parentNode.removeChild(thisNode);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;} &lt;/p&gt;
&lt;p&gt;else &lt;/p&gt;
&lt;p&gt;{&amp;nbsp; &lt;/p&gt;
&lt;p&gt;return; &lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39342.aspx</link><pubDate>Mon, 09 Mar 2009 20:34:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39342</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39342.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39342</wfw:commentRss><description>&lt;p&gt;The initial sample provided to you was C# for the InfoPath 2003 Object Model.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.pageresource.com/jscript/jconfirm.htm"&gt;Here&amp;#39;s&lt;/a&gt; a sample using JScript. If we follow that example, I&amp;#39;d guess something along these lines would work:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;var answer = confirm(&amp;quot;Do you really really really want to delete?&amp;quot;);&lt;/p&gt;
&lt;p&gt;if (answer == true)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; //delete code goes here&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; return;&lt;br /&gt;}&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39281.aspx</link><pubDate>Fri, 06 Mar 2009 12:58:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39281</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39281</wfw:commentRss><description>&lt;p&gt;Hi Hilary, I&amp;#39;m using InfoPath 2003 and the programming language is JScript.&amp;nbsp; Cheers!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39251.aspx</link><pubDate>Fri, 06 Mar 2009 02:43:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39251</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39251</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;What version of InfoPath are you using? What programming language is the template set to use? If you reply to the first question, I can give you directions on figuring out the second question... &lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39230.aspx</link><pubDate>Thu, 05 Mar 2009 18:42:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39230</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39230</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m also getting an error message saying that&amp;nbsp;Infopath cannot&amp;nbsp;create a new, blank form.&amp;nbsp;&amp;nbsp; The form template is not&amp;nbsp;valid.&amp;nbsp; I assume this has something to do with&amp;nbsp;the assembly?&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39229.aspx</link><pubDate>Thu, 05 Mar 2009 18:37:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39229</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39229</wfw:commentRss><description>&lt;p&gt;So what if that file is not on my computer?&amp;nbsp; I have no C:\WINDOWS\assembly folder.&amp;nbsp; I&amp;#39;m on a government computer on a network, would that make a difference?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39220.aspx</link><pubDate>Thu, 05 Mar 2009 13:40:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39220</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39220.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39220</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, you have to use the ‘using&amp;#39; also.&amp;nbsp; To add this, take the reference of the assembly. &lt;b&gt;Microsoft.Office.Interop.InfoPath.SemiTrust &lt;/b&gt;which is available at C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.InfoPath.SemiTrust\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.InfoPath.SemiTrust.dll&lt;/p&gt;
&lt;p&gt;For more information about this name space, go through the below links.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.interop.infopath.semitrust.aspx"&gt;http://msdn.microsoft.com/en-us/library/microsoft.office.interop.infopath.semitrust.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa947695.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa947695.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;http://www.dotnettech.net/BCL/CSharp/Microsoft.Office.Interop.InfoPath.SemiTrust.XdConfirmChoice/Class.aspx&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39218.aspx</link><pubDate>Thu, 05 Mar 2009 13:24:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39218</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39218.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39218</wfw:commentRss><description>Sorry, I&amp;#39;m a bit new at this.&amp;nbsp; Okay, never done it before.&amp;nbsp;&amp;nbsp; The namespace isn&amp;#39;t there, but how exactly do I add it?&amp;nbsp; Also, am i supposed to include the &amp;quot;using&amp;quot; that you&amp;#39;ve got at the front of the code?&amp;nbsp; Cheers for the help!</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39199.aspx</link><pubDate>Thu, 05 Mar 2009 04:32:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39199</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39199.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39199</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Once verify the following name space is added or not.&lt;/p&gt;
&lt;p&gt;Microsoft.Office.Interop.InfoPath.SemiTrust&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it is not added then add it using the following line.&lt;/p&gt;
&lt;p&gt;using Microsoft.Office.Interop.InfoPath.SemiTrust;&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39173.aspx</link><pubDate>Wed, 04 Mar 2009 15:59:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39173</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39173.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39173</wfw:commentRss><description>&lt;p&gt;help!&lt;/p&gt;</description></item><item><title>Re: Add a confirmation box to a delete button.</title><link>https://www.infopathdev.com:443/forums/thread/39010.aspx</link><pubDate>Fri, 27 Feb 2009 14:07:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39010</guid><dc:creator>FrisbeeCowboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39010</wfw:commentRss><description>I get a run-time error saying that xdConfirmChoice is undefined.&amp;nbsp;</description></item></channel></rss>