on 09-22-2008 11:41 AM
Hi experts,
I need to display an error message when the field is empty in popup window. send me the code pls.
reg
kiruba
hi Siva,
Thanks a lot.I got the result.
Kiruba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use the following code,
if(wdContext.currentContextElement().get<Attribute>()==null){
IWDControllerInfo coninfo =
wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(
"Input is required.",
coninfo.findInEventHandlers("Ok"),
"Ok");
dialog.open();
}
define one event handler with name 'Ok'
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First you need to create an event Handler say name as Ok. Then you can use the following code:
IWDConfirmationDialog cWin =wdComponentAPI.getWindowManage().createConfirmationWindow( <Error Message>,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Ok"),"Ok");
cWin.open();
You can use the following code based upon the condition to populate the text in the popup window.
Hope this may help you.
Nelly
Edited by: nelly khare on Sep 22, 2008 1:28 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First you can create event handler go to method tab then click tab button then choose event handler name is ok finally press ok
IWDControllerInfo controllerInfo =
wdControllerAPI.getViewInfo().getViewController();
String first =
"<put it your error message>";
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(
first,
controllerInfo.findInEventHandlers("ok"),
"ok");
dialog.open();
Regards,
P.Manivannan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if(error condition)
//e.g if(wdContext.current<node>element().get<attribute>()==null )
{
wdComponentAPI.getMessageManager().reportException("errorMessage", false);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.