cancel
Showing results for 
Search instead for 
Did you mean: 

OK button not visible in popup dialog box.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

This code is nonsense (again).

Armin

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Armin

Former Member
0 Kudos

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