<?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: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9419.aspx</link><pubDate>Mon, 27 Mar 2006 19:20:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9419</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9419.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9419</wfw:commentRss><description>Try Application.ActiveWindow.Close(true).  Close should be upper "C".</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9418.aspx</link><pubDate>Mon, 27 Mar 2006 19:16:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9418</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9418.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9418</wfw:commentRss><description>I don't really have an answer to that.  You may just have to play around with it.  Look at the sample forms for ideas and just make your information text looks professional. &lt;br /&gt;&lt;br /&gt;:-)</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9417.aspx</link><pubDate>Mon, 27 Mar 2006 19:15:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9417</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9417</wfw:commentRss><description>For the life of me, that Application.ActiveWindow.close(true) code will not work. Is that the JS version?  I get "object doesn't support this property".&lt;br /&gt;&lt;br /&gt;You helped me with this earlier last week and I went back to that form, but can't find where that code lives.  It's not a Rule nor part of the Submit action.&lt;br /&gt;&lt;br /&gt;SOrry to be so dense.  On a happy note, thank you for the View idea.  Now that I've played around with them my imagination is going wild! ;-)</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9416.aspx</link><pubDate>Mon, 27 Mar 2006 18:45:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9416</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9416</wfw:commentRss><description>Wow.  That was easy.  I just have simple text on the screen with the two buttons.  Any way to make it look more like a modal dialog?</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9415.aspx</link><pubDate>Mon, 27 Mar 2006 18:40:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9415</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9415.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9415</wfw:commentRss><description>OK.  I don't have any experience with Views, so I guess now is the time.  I'll check back in as I progress.  Thanks, Stephanie!</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9414.aspx</link><pubDate>Mon, 27 Mar 2006 18:18:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9414</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9414.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9414</wfw:commentRss><description>I was not able to use the Application.ActiveWindow.Close(true) function.  I am not sure if that's because you can not call the it within onload or because of the form is not fully trusted.  I will suggest you to do it with multiple views.  You will have a confirmaiton view as a default view.&lt;br /&gt;&lt;br /&gt;This confirmation view will contain some text + two buttons, OK and Cancel. &lt;br /&gt;1. Set up a rule on the OK button for the  following action: &lt;br /&gt;   - switch view go to your data entry view.&lt;br /&gt;2. For the cancel button you will call the Application.ActiveWindow.close(true) inside the onclick function.</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9413.aspx</link><pubDate>Mon, 27 Mar 2006 17:34:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9413</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9413</wfw:commentRss><description>OK.  So far so good.  Now how do I change the OK case to go on with the rest of the form and the CANCEL case to close InfoPath?&lt;br /&gt;&lt;br /&gt;BTW, this is way over my head.  I'm just copying and pasting.;-)&lt;br /&gt;&lt;br /&gt;Deb</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9412.aspx</link><pubDate>Mon, 27 Mar 2006 16:29:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9412</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9412</wfw:commentRss><description>Here is the JScript code.  &lt;br /&gt;&lt;br /&gt;function XDocument::OnLoad(eventObj)&lt;br /&gt;{&lt;br /&gt;	// Write your code here&lt;br /&gt;	var clicked;&lt;br /&gt;	&lt;br /&gt;	clicked = XDocument.UI.Confirm("Do you wish to continue?", 1);&lt;br /&gt;	&lt;br /&gt;	if (clicked == 1) &lt;br /&gt;	{&lt;br /&gt;		XDocument.UI.Alert("You clicked OK.");&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;	else if (clicked == 2)&lt;br /&gt;	{&lt;br /&gt;		XDocument.UI.Alert("Your clicked cancel.");&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Although, if you probably should create a default view with those buttons.  &lt;br /&gt;</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9411.aspx</link><pubDate>Mon, 27 Mar 2006 15:30:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9411</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9411</wfw:commentRss><description>Thanks, Stephanie.&lt;br /&gt;&lt;br /&gt;Hmmm ... what do I attach that code to?</description></item><item><title>Re: Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/9410.aspx</link><pubDate>Mon, 27 Mar 2006 15:22:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9410</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9410</wfw:commentRss><description>Hi Deb,&lt;br /&gt;&lt;br /&gt;Try XDocument.UI.Confirm&lt;br /&gt;&lt;br /&gt;Here is the link &lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthConfirm_HV01103972.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthConfirm_HV01103972.asp&lt;/a&gt;</description></item><item><title>Message Box With OK-Cancel?</title><link>https://www.infopathdev.com:443/forums/thread/5482.aspx</link><pubDate>Mon, 27 Mar 2006 14:45:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5482</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5482</wfw:commentRss><description>I have a form that displays an information message box on form open.  I need that message to have an OK/Cancel combination so that if, based on the instructional text, the user realizes they're in the wrong form, they can click Cancel.  How might I accomplish that?&lt;br /&gt;&lt;br /&gt;Thank you!</description></item></channel></rss>