AnsweredAssumed Answered

new record go to field

Question asked by DaveArndt on Jul 31, 2015
Latest reply on Jul 31, 2015 by DaveArndt

I have a script trigger "OnObjectKeyStoke" tied to a number field.  The script creates a new record if "Enter" or "Return" is pressed.  That part works fine the new record opens but you have to click in a field to start typing.  I was hoping when the new record opens the first field is selected and ready to just start typing.  Currently it opens a new record but you have to press Tab or click in a field.  This seems simple not sure what Im doing wrong.

I added the "Go To Field"...didnt help.  I then tried adding a pause before it goes to the field which sort of works, the target field is highlighted for the duration of the pause then the active field moves to the next field.

 

Thanks in advance

Dave

 

FMP 13/14

FMS 13
Windows Environment (please be kind)

 

 

SCRIPT

****************************************************

If [Code (Get (TriggerKeystroke )) = 10 or Code (Get(TriggerKeystroke)) = 13

      New Record/Request

      Go to Field [FuelLog::VehicleNumber]

End If

***************************************************

Outcomes