Message Box in browser-enabled form - InfoPath Dev
in

InfoPath Dev

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: Previous Next
  • 02-21-2007 06:53 AM

    Message Box in browser-enabled form

    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 Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
  • 02-21-2007 02:24 PM In reply to

    Re: Message Box in browser-enabled form

    Can you do it with a rule instead?
  • 02-21-2007 11:48 PM In reply to

    Re: Message Box in browser-enabled form

    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 Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
  • 02-22-2007 09:34 AM In reply to

    Re: Message Box in browser-enabled form

    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.
  • 02-22-2007 09:36 AM In reply to

    Re: Message Box in browser-enabled form

    Thanks, I think this is good solution for me :0
    Best regards,
    Alexander Ekzarov
    Kyiv, Ukraine
    silverlightnet.blogspot.com
  • 02-23-2007 09:11 AM In reply to

    Re: Message Box in browser-enabled form

    Great! Good luck. Glad to have helped!
  • 07-08-2010 08:58 AM In reply to

    Re: Message Box in browser-enabled form

    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.

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.