January 31, 201312 yr 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. Â Â
February 1, 201312 yr 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. Â
February 1, 201312 yr Author 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.
April 2, 201312 yr Newbies 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
Create an account or sign in to comment