on 08-07-2007 5:12 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds strange but placing the declaration of popup window just before opening it, everywhere required in code has solved the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this a standard confirmation dialog? Maybe a problem with missing text resources?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what is the visible property of this ok button set to? Is it set to some dynamic context attribute?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.