Skip to Content
avatar image
Former Member

set the cursor on inputfield

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 26, 2008 at 09:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Now i able to triger setfocus method only on the button action but the setfocus method on wdInit and wdDoModifyView. The cursor no appear when user first in the view. Is that any solution on tis??

      thanks.

  • avatar image
    Former Member
    May 30, 2008 at 06:14 AM

    Solve by trigger the setFocus method at the plug.

    Add comment
    10|10000 characters needed characters exceeded