Question about Alert - InfoPath Dev
in

InfoPath Dev

Question about Alert

Last post 09-22-2008 11:18 AM by Rakesh. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-04-2005 12:54 AM

    Question about Alert

    I have an InfoPath form and in it's it code I use the Alert property for PupUp massages to the user like:

    this.thisXDocument.UI.Alert("Hello World").
    Is it any option for massage and for Alert??? Alert usally use for error massage. but "Hello World" is not on of them.
    What can I do instide?
  • 04-04-2005 05:31 AM In reply to

    Hello Liorlankari,
    If I understand your question correctly you want to be able to give a different message in the pop-up window. You can do that by giving whichever string you want as message in your alert window. So code will look like this

    thisXDocument.UI.Alert("String you want seen on the Alert window");

    Shanthi
    InfoPathDev India
    Shanthi Reddy
  • 04-04-2005 06:41 AM In reply to

    No. I want a pop-up window which is not Alert (like confirm type). Becuase Alert window contain icon of yellow triangle which mean Error.
  • 04-05-2005 05:05 AM In reply to

    Just like there is Alert there is a Confirm to get a confirm dialog box -> thisXDocument.UI.Confirm. If you want a confirm window with Yes/No buttons, here is code that can help you out

    if(XdConfirmChoice.xdNo == thisXDocument.UI.Confirm(string.Format("Are you sure you want to delete?" ), XdConfirmButtons.xdYesNo))
    return;

    Here if the user clicked on No then the code will return without doing anything and if the user clicked Yes it will go on to the next code to delete.

    Hope this helps!

    Shanthi
    InfoPathDev India
    Shanthi Reddy
  • 02-21-2008 07:36 AM In reply to

    • steve
    • Not Ranked
    • Joined on 01-25-2008
    • Posts 6

    thanks! you answer just helped me out!

     

    steve
  • 09-22-2008 11:18 AM In reply to

    • Rakesh
    • Not Ranked
    • Joined on 09-22-2008
    • Posts 1

     Can you please tell me what namespace to use for getting this "this x document"

     

    Thanks

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