1 Reply Latest reply on Jan 14, 2013 7:16 AM by jbante

    go to focused field.......???????????

    Anirudh

      Hello !!!!!!!!

       

      Is it possible to go focused filed by button click...

       

      I have made Number pad for PoS. When I press any number on this Num Pad , Number will written on paid field that i have set it on script.

      I want to  make number pad for any focused field... when user clicks on any field and then press number pad, numbers should display on that focused field.

       

      aNIRUDH

        • 1. Re: go to focused field.......???????????
          jbante

          It sounds like what you're asking for is not for a script to navigate to a particular field, but to set a value to whichever field is active at the time the button is clicked. Have you tried using the Insert Calculated Result [] script step? You could write a script that is simply:

           

          Insert Calculated Result [Get ( ScriptParameter )]

           

          ... then assign each button to call this script with the digit for that button as the script parameter. To accomodate a backspace button and smooth handling of entering negative numbers, you may want to consider something slightly more complicated using the Set Field By Name script step in combination with the Get ( ActiveFieldName ) function. If you do this, remember to wrap Get ( ActiveFieldName ) with GetFieldName ( GetField ( ... ) ) to get the fully-qualified Table::fieldName needed by the Set Field By Name script step.