on 05-22-2008 6:35 AM
Hi,
I have several input field in my MI7.1 application for PDA develop using NWDS 7.1 . Is that possible for me to set the cursor on the application. For example after user scan the product code the cursor will move to quantity input field.
I try use
IWDAttributeInfo attribute = wdContext.getNodeInfo().getAttribute("Name");
wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attribute);
but some how the eswt not supported.
thanks.
Edited by: fcgan on May 26, 2008 10:58 AM
Solve by trigger the setFocus method at the plug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I guess you are using the 7.10 SP3 SDN evaluation version, right? I am not sure if this is possible in this version. There was one bug available in the original SP3 version which has been fixed in a patch. I currently do not know if the fix made it into the SDN release. If you are using the proper version containing the fix, there should be a method called "setFocus" on the corresponding input field. To check it do the following: in the wdDoModifyView method of the view containing the input field, type the following line of code
view.get<name_of_input_field>ViewItem().setFocus();
This should do the job you need.
Regards,
Stefan
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.