on 05-17-2005 11:38 AM
Hi all,
How can I go to InputField automaticaly after a action event on my View?
thanks in advance,
david
Hi again,
I've solved this. I can focus on the InputField using the wdDoModifyView method.
But I've another issue.
I use the firsTime variable to focus like:
if(firstTime){
IWDInputField input = (IWDInputField)view.getElement("InputField1");
input.requestFocus();
}else{
IWDInputField input = (IWDInputField)view.getElement("InputField2");
input.requestFocus();
}
but, how can I reset this variable from other method?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot reset this variable but you can use a context attribute that determines which input field should get focussed. In wdDoModifyView() you could read/reset this attribute and set the focus accordingly.
Or: Set the focus directly from the event handler using method
requestFocus(IWDNodeElement, IWDAttributeInfo)
.
Armin
ok
now work's! thanks a lot for your patience.
david
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. It is the name of the InputField.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The ifTemplateName name is the name of InputField ID ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When I try to implement:
IWDInputField input = (IWDInputField)view.getElement("ifTemplateName");
an error appear:
view cannot be resolved.
thanks for your responses,
david
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 |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.