on 02-25-2009 4:25 PM
is it possible to programatically set the focus on an input field ?
Hi,
Yes its possible use the requestFocus method
Ex:
wdThis.wdGetAPI().requestFocus(nodeElement, attribute);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
try this
public static void wdDoModifyView(IPrivatePOSearchTemplateNameView wdThis, IPrivatePOSearchTemplateNameView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
if (firstTime) {
IWDInputField input = (IWDInputField)view.getElement("ifTemplateName");//Id of Input Field
input.requestFocus();
}
//@@end
}
Best Regards
Satish Kumar
Hi All,
I am able to set focus on the UI element(Message Area) at run time in the browser window through Request focus method. But when i am running the same application through portal, I am not able to focus on the UI element.Moreover, this method is only applicable for View. So, if I want to print any message in my Component controller what should i DO?
Since, it is not supporting it.
Please send your pointers as soon as possible.
Your replies will be highly appreciable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
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.