on 07-19-2005 8:54 PM
Hello,
I want the cursor to be positioned in a specific field when my WDP page loads. How do I accomplish that?
Thanks in advancce for any help.
David.
Hi David,
Option 1:
-
if(firstTime){
IWDInputField input = (IWDInputField)view.getElement(<<Input Field name>>);
input.requestFocus();
}
Option 2:
-
Check the following method
requestFocus(IWDNodeElement nodeElement, IWDAttributeInfo attribute)
IWDAttributeInfo attribute = wdContext.nodeXYZ().getNodeInfo().getAttribute(IPrivateMyView.IXYZElement.ABC);
wdThis.wdGetAPI().requestFocus(wdContext.currentXYZElement(), attribute);
Hope this solves your problem.
Regards,
Santhosh.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.