uemtux Posted January 31, 2013 Posted January 31, 2013 Hi All, Â Got a weird problem for you today. I've got a global field on my layout, gScanSampleID, I use a barcode scanner to scan a value into it. The barcode scanner sends an 'Enter' keypress at the end of the scan, so I use the onObjectSave script trigger to run the script that does what I need to do with the scanned data. The only problem is, at the end of the script, I use a "Go to Field" to return to the gScanSampleID field, to make it ready for the user to scan again, but this isn't working! Â Nothing is selected, and I have to manually click into the field to scan again. Help? Screenshot of my script attached. Â Â
No_access Posted February 1, 2013 Posted February 1, 2013 select / perform probably should not be checked depending on how you set it up, for mine I gave it a name and and use go to object, and it works perfect for me. see screenshot below. Â
uemtux Posted February 1, 2013 Author Posted February 1, 2013 Nah, that wasn't it, I tried it both ways and it didn't work. The answer was that after the trigger is executed. filemaker does something else, it commits or leaves the field or something automatically, so the solution was just to put Exit Script[False] as my last line and prevent FM from doing that. Now it's working like a charm.
Newbies danflorrick Posted April 2, 2013 Newbies Posted April 2, 2013 How could it work automatically?I did not find any wrong with the barcode scanner script you have attached, so let me know if you find the problem. ______________________________________ Tags:barcode scanner script
Recommended Posts
This topic is 4323 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