I have a global field that i am using as a search field. Is there a way that i can set it to search when i hit enter on the keyboard, rather then it tabbing down to the next line ?
Thanks for your help.
Use an OnObjectKeystroke Script Trigger and look for Char ( 10 ) or Char ( 13 ).
What do you mean look for char (10) or Char (11)
char (13) *
I'm doing Set Field Char (10) or (13) and its just writing the text like this now
NVM I figured it out . Thanks bud.
Do as Mike said, and start your script with:
k = Get ( TriggerKeyStroke ) ;
not ( k = Char ( 10 ) or k = Char ( 13 ) )
The OnObjectKeystroke will trigger every time you type a character in the field. Another approach is to use an OnObjectExit trigger and in the Inspector set Go to next object using Tab, Return, and Enter. The trigger only fires once.
Retrieving data ...