on 02-15-2008 5:41 AM
Hi all,
I have to inpuitfields followed by a button.If the user clicks on the button with out entering data in one of the input filels it has to show a popup message as Please enter the Value and it has to place the cursor in that respective inputfiled with focus on it..
Can anyone please help me out
Regards
Padma N
Hi,
Use as follows
IWDConfirmationDialog confirmationDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(confirmationText, eventHandlerId, label)
confirmationDialog.setTitle("");
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
padma,
You have to set it in the wdDoModifyView()
if ( firstTime ) {
{
IWDInputfield inp_field = (IWDInputfield) view.getElement("<inputField_ID>");
inp_field.requestFocus();
}
regards,
nikhil
xxxxxxxxxxxxxxx
Edited by: Armin Reichert on Feb 23, 2008 6:29 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Padma..
Use this to set focus on input field..
In your WdDoModifyView method of the view controller,
if(firsttime)
{
// get the UI element you want to focus In this case i am taking a input field
IWDInputfield inputfield = (IWDInputfield)view.getElement("<UI element ID>");
inputfield.requestFocus();
GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. You can open a Confirmation dialog box with the message "please enter some value" and clicking on the OK button of the Confirmation dialog box set the cursor to the input field using the request.setFocus() method.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.