scottworld

Performance Bug in FileMaker 15 with OnObjectKeystroke

Discussion created by scottworld on Jun 14, 2016
Latest reply on May 9, 2017 by TSGal

In FileMaker Pro Advanced 15.0.1, we have discovered a performance bug with the OnObjectKeystroke script trigger.

 

1. Our file is hosted over a WAN via FileMaker Server 14.

2. We are in browse mode. Our layout is in form view, and it has a global field in the header part.

3. The global field has the OnObjectKeystroke script trigger attached to it.

4. The script that gets triggered by this script trigger is a very small script. It simply checks to see if the user pressed the return or the enter key. If the user did NOT press the return or the enter key, it simply exits the script with TRUE. (Unimportant but FYI: If the user does press the return or the enter key, the script then performs about 20 script steps and then ultimately exits the script with FALSE to prevent the return key from showing up in the original field.)

5. In browse mode, we can type as many characters as we want into the global field, and they show up almost instantaneously.

6. Everything is fine so far. No problems. Everything is working like it always has worked in the past.

7. Now, open up the Script Workspace, and open up a bunch of scripts in new tabs.

8. Be sure to leave Script Workspace open while you return to your layout. Now, when you type into your global field at the top of the layout, there is a SERIOUS DELAY after typing each character. On our end, we are seeing a delay of up to 3-4 seconds in between typing each character, although our FileMaker Server is about 2,000 miles away from us. In any case there are serious performance lags as FileMaker Pro evaluates the OnObjectKeystroke script trigger after each typed character.

9. Close Script Workspace, and performance immediately returns to full speed again.

 

Thanks,

Scott

Outcomes