Message Box in browser-enabled form - InfoPath Dev Sign in | Join | Help in SharePoint Integration InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » SharePoint Integration » Message Box in browser-enabled form Message Box in browser-enabled form Last post 07-08-2010 08:58 AM by nareshveeragoni. 6 replies. Page 1 of 1 (7 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-21-2007 06:53 AM ekzarov Joined on 12-21-2006 Ukraine Posts 106 Message Box in browser-enabled form Reply Contact I have a browser-enabled form template in infopath 2007, wich contains this code:....public void btnCorrFind_Clicked(object sender, ClickedEventArgs e){ System.Windows.Forms.MessageBox.Show("Hello world");}....I have published it as full trust content type... Then I write something like this:stsadm -o verifyformtemplate -filename c:\myform.xsn and I got an error: FatalErrorNoThrow: User interface operations are not supported. Consider removing the folowing usage: System.Windows.Forms.Is there a posibility to show some confirmation boxes or message boxes in browser-enabled form in Infopath ?????? Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com 02-21-2007 02:24 PM In reply to Greg Collins Joined on 08-08-2006 Posts 2,126 Re: Message Box in browser-enabled form Mark as Not AnswerMark as Answer... Reply Contact Can you do it with a rule instead? Please Visit:BraintroveGreg's Paintings 02-21-2007 11:48 PM In reply to ekzarov Joined on 12-21-2006 Ukraine Posts 106 Re: Message Box in browser-enabled form Mark as Not AnswerMark as Answer... Reply Contact When I tried to do this with Rules I get notification: "Dialog actions are not supported". In any way I have published form again. Then I wrote "stsadm -o verifyformtemplate ...." and get this:DegradedFunctionality: Dialog box action is not supported by Infopath Forms Services.When the form is viewed in Infopath, the dialog box will show. When the form is viewed using web browser, the dialog box will not show.Dialog box actions are best used to test Rules in Infopath. If the dialog box action is not used for testing, to make sure that form is usable in Web browser, consider using conditional formatting to show and hide a section that contains the dialog box information.This is very bad :) Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com 02-22-2007 09:34 AM In reply to Greg Collins Joined on 08-08-2006 Posts 2,126 Re: Message Box in browser-enabled form Mark as Not AnswerMark as Answer... Reply Contact Well, their offered solution is not too bad actually... you just have some section in your view which becomes the "dialog box". The section can be prettied up any way you want. Then have a field in there that can be set with the message text. When you want to show the message, you set some value somewhere telling the "dialog box" to show (i.e. conditional formatting). Then you can reset the value to make it hide again. Please Visit:BraintroveGreg's Paintings 02-22-2007 09:36 AM In reply to ekzarov Joined on 12-21-2006 Ukraine Posts 106 Re: Message Box in browser-enabled form Mark as Not AnswerMark as Answer... Reply Contact Thanks, I think this is good solution for me :0 Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com 02-23-2007 09:11 AM In reply to Greg Collins Joined on 08-08-2006 Posts 2,126 Re: Message Box in browser-enabled form Mark as Not AnswerMark as Answer... Reply Contact Great! Good luck. Glad to have helped! Please Visit:BraintroveGreg's Paintings 07-08-2010 08:58 AM In reply to nareshveeragoni Joined on 10-03-2008 Posts 1 Re: Message Box in browser-enabled form Mark as Not AnswerMark as Answer... Reply Contact Hello Greg, i too have make use of same concept to show the error messages. but having difficulty in positioning the cursor up on getting the error, do you have any sugestions or recomendations.. thanks mych for your time. Filed under: infopath data validation Page 1 of 1 (7 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hello Greg, i too have make use of same concept to show the error messages. but having difficulty in positioning the cursor up on getting the error, do you have any sugestions or recomendations..
thanks mych for your time.