Jump to content

This topic is 4323 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

post-93489-0-81001700-1359665911_thumb.p

 

 

Posted

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.

 

post-102649-0-70657600-1359744729_thumb.

Posted

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.

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.