wintergreen Posted May 8, 2009 Posted May 8, 2009 I've been playing around with the OnLayoutKeystroke trigger. Interestingly, the trigger works regardless of any layout object having focus-- as long as the window has focus, the trigger works. While this is great, the pop up message "Before typing, press Tab or click in a field, or choose the New Record menu command." will still appear after the script runs, which is... weird, to say the least. Is there a way to prevent this pop up?
wintergreen Posted May 8, 2009 Author Posted May 8, 2009 hmm. Ok, I found a workaround, but it is not pretty. If the triggered script has If [ Get(ActiveFieldName)="" ] Go to Field [global field] End If the warning does not show (although the keystroke is subsequently added to the field) Also the field probably needs to be on the current layout
Raybaudi Posted May 8, 2009 Posted May 8, 2009 Delete the: Go to Field thing, but add: Exit Script [ result = 0 ]
comment Posted May 8, 2009 Posted May 8, 2009 See also: http://fmforums.com/forum/showtopic.php?tid/200403/
Recommended Posts
This topic is 5952 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now