Skip to Content
avatar image
Former Member

OK button not visible in popup dialog box.

Hi,

There is some problem with the popup dialog boxes that I am using. Sometimes I can see the OK button while sometimes it is not visible.

Any clue regarding this odd behaviour?

Many Thanks,

Anagha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • avatar image
    Former Member
    Aug 08, 2007 at 11:08 AM

    Hi

    Write some code for button in WdDoModifyView() that will enable during runtime.

    example:

    if(!firstTime)

    {

    IWDAbstractButton button = (WDAbstractButton)view.setEnable("True");

    }

    i hope this will help to solve your problem

    Regrards

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 07, 2007 at 08:17 PM

    what is the visible property of this ok button set to? Is it set to some dynamic context attribute?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 08, 2007 at 07:32 AM

    Is this a standard confirmation dialog? Maybe a problem with missing text resources?

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 09, 2007 at 09:50 AM

    Hi vln,

    Nopes not using themes.

    Yes I do get the Error Text and the Title that I am setting as mentioned above. Only the button doesn't appear (that too sometimes is does appear).

    Thanks for repsonding!

    Regards,

    Anagha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 08, 2007 at 01:18 PM

    Hi Armin,

    I am using Standard confirmation dialog box only.But I am using the same event handler 'OK' for three different popup messages.

    Each one has code in the following format:

    IWDConfirmationDialog dialog_Auth_err = wdComponentAPI.getWindowManager().createConfirmationWindow("Can not view details of this user",wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("OK"),"OK");

    dialog_Auth_err.setTitle("Not Authorized");

    dialog_Auth_err.open();

    The First time when the pop up comes, the button inside the popup box is visible and when pressed it closes the dialog box also (which is the expected behavior).

    But if I run the application again and cause it to pop up, this time the OK button to close the dialog box is not there.

    What could be causing this problem?

    Many Thanks,

    Anagha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 08, 2007 at 07:23 PM

    Hi All,

    Perhaps I should try with separate event handlers for each popup box. The problem is still open.

    Is there anyone who has faced it before and could help?

    Regards,

    Anagha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi

      Are you getting the message if not the button?

      We once faced a similar problem where in we got an empty dialog box without the text and button but it was due to a programming error. I had written a generic method to open a dialog box where i passed the button names via context. I had missed to pass the button name. May be something similar could have happened.

      By the way are you using themes?

      regards

      LNV

  • avatar image
    Former Member
    Aug 10, 2007 at 09:49 AM

    Sounds strange but placing the declaration of popup window just before opening it, everywhere required in code has solved the issue.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      HI everybody,

      I am also having similar error now.

      IN the standard Dialog box, I am not able to get the button, despite of doing everything properly.

      Please find the code used:

      IWDControllerInfo conInfo= wdThis.wdGetAPI().getControllerInfo();

      IWDEventHandlerInfo evntInfo = conInfo.findInEventHandlers("Ok");

      IWDConfirmationDialog confDialog =wdComponentAPI.getWindowManager().createConfirmationWindow("Please Enter a search Criteria", evntInfo , "OK");

      confDialog.setTitle("Confirmation Window");

      confDialog.open();

      I have created the eventhanler.

      I tried all possible ways but nothing has resolved the issue.

      The only difference is that I need to place this code in custom controller only.