Skip to Content
avatar image
Former Member

Error in Confirmation Dailog box

Hi All,

In my application I am using a confirmation dilog box.The problem is that sometimes I am not able to see the event handler button in the dailog box.(The dialog box is visible but the button is missing ).This is happening if there is an exception occuring in the sequence method of methods I call.Can anyone of you tell me how do i handle this.

Thankx,

Praveen.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 24, 2009 at 01:41 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 24, 2009 at 10:48 AM

    Hi Anagha,

    Thank you for the quick reply.The below is the code I have followed to open the dialog box.This code I have written in my Custom Controller :

    IWDConfirmationDialog dailog = wdComponentAPI.getWindowManager().createConfirmationWindow(dailogText,wdThis.wdGetAPI().getControllerInfo().findInEventHandlers("OK"),"Ok");

    dailog.setTitle("Error Message");

    dailog.open();

    As per your reply do u want me to declare this IWDConfirmationDailog before opening it.But I am doing the same thing.Kindly let me know if I am wrong

    Thankx,

    Praveen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      If you want to show different titles then add another paramter "title" for the same method and pass that arguement dynamically when ever you call this method.

      For example if you want to display some success message:

      displayMessage("Successfully saved in database","Success Message");

      For example if you want to display validation error message:

      displayMessage("Please enter username","Validation Message");

      For example if you want to display error message:

      displayMessage("Error while storing the data in database","Error Message");

      public void displayMessage(String message, String title)
      {
      IWDControllerInfo cinfo = wdControllerAPI.getViewInfo().getViewController();
      IWDConfirmationDialog confirmDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(message, cinfo.findInEventHandlers("OK"), "  OK  ");
      confirmDialog.setWindowSize(350,90);
      confirmDialog.setTitle(title);
      confirmDialog.setWindowPosition(WDWindowPos.LEFT);
      confirmDialog.setWindowPosition(100,230);
      confirmDialog.show();
      }
      

      Regards,

      Charan

  • avatar image
    Former Member
    Jun 22, 2009 at 05:49 AM

    I had once faced a similar problem. Check this thread:

    OK button not visible in popup dialog box.

    Add comment
    10|10000 characters needed characters exceeded