<?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: Display message box when InfoPath 2003 button clicked</title><link>https://www.infopathdev.com:443/forums/thread/19328.aspx</link><pubDate>Tue, 24 Apr 2007 18:53:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19328</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19328.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19328</wfw:commentRss><description>&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Hi Markperry,&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;If you want to give success and failure message then you can use below the code in button onClick event&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;try&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-size:10pt;"&gt;&lt;font face="Times New Roman"&gt;XDocument.Save();&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;//Gives the success message&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;XDocument.UI.Alert(&amp;quot;The form has been successfully saved&amp;quot;);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;catch(Exception ex)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;//Gives the failure message&lt;span&gt; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&lt;font face="Times New Roman"&gt;XDocument.UI.Alert(ex.Message);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman';"&gt;}&lt;/span&gt;</description></item><item><title>Re: Display message box when InfoPath 2003 button clicked</title><link>https://www.infopathdev.com:443/forums/thread/19317.aspx</link><pubDate>Tue, 24 Apr 2007 10:35:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19317</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19317</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Write below code in that function.&lt;/p&gt;&lt;p&gt;XDocument.UI.Alert(&amp;quot;The form has been successfully saved&amp;quot;);&lt;/p&gt;&lt;p&gt;It will work for you.&lt;/p&gt;</description></item><item><title>Display message box when InfoPath 2003 button clicked</title><link>https://www.infopathdev.com:443/forums/thread/19316.aspx</link><pubDate>Tue, 24 Apr 2007 10:27:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19316</guid><dc:creator>markperry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19316</wfw:commentRss><description>&lt;p&gt;I have a button on my form that saves the form back to the document library. This works through &amp;#39;code behind&amp;#39;, i.e.:&lt;/p&gt;&lt;p&gt;&amp;nbsp;function CTRL29_5::OnClick(eventObj) &lt;/p&gt;&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;XDocument.Save(); &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;(the code is JavaScript). How can I make this function display a message box&amp;nbsp;that tells the user&amp;nbsp;something like &amp;quot;the form has been successfully saved&amp;quot;?&lt;/p&gt;&lt;p&gt;Mark.&lt;/p&gt;</description></item></channel></rss>