4 Replies Latest reply on Mar 28, 2014 10:32 AM by TSGal

    Type Ahead Search Trigger Using Go to Field Not Working

    tpuckett

      Title

      Type Ahead Search Trigger Using Go to Field Not Working

      Post

           Hi, All, I am trying to do our standard type ahead search on FM GO, but I'm not getting the refocus to the global search field at the end of the script.

           I have a global search field, g_search_all in the layout's header and a list view in the body with a calculated display field.

           I put an OnObjectModify script trigger on the global search field, so that when a character is typed the trigger executes:

                Set Error Capture [On]
                Enter Find Mode []
                Set Field [DIR::c_search_all; DIR:g_search_all]
                Perform Find []
                Go to Field [DIR::g_search_all]
                Halt Script

           I use Halt Script, and have tried Exit Script [False] to keep the cursor in the field, so the next search character can be typed.  However, the focus always seems to go to the body / display field and the keypad on GO goes away.

           How can I keep the cursor in the global search field, ready to receive another letter?

           Thanks, Tom