AnsweredAssumed Answered

FM GO: Refresh window script very slow/iPad keyboard control?

Question asked by mcthc on Dec 15, 2011
Latest reply on Dec 21, 2011 by mgores

Title

FM GO: Refresh window script very slow/iPad keyboard control?

Post

A script that works perfectly in Filemaker Pro is painfully slow in Filemaker Go.

I used PhilModJunk's Enhanced Value Selection technique (http://forums.filemaker.com/posts/3156a8d72a) to simulate the auto-complete feature, but one that searches multiple fields (first name and last name).  This is accomplished using a global search field with a script trigger that OnObjectModify refreshes the portal window with results that conform to the letters typed in the search field.  

The script has the following steps:
-commit records/requests
-Refresh Window (flush cached join results)
-Set Selection (CONTACTS:SEARCH; Start Position: Length ( CONTACTS:SEARCH ) + 1; End Position: 0)

In Filemaker Pro this works beautifully and the auto-complete is instantaneous (works just like the search box in Apple's Address Book).  In Filemaker GO it's painfully slow.  The script takes 2-3 seconds to process each letter typed, and the iPad's keyboard disappears as the script executes then comes back up to allow the next letter to be typed in. Too slow and the keyboard popping up and down with each keystroke is very disconcerting.

Here is a sample sequence:

Type "A"
Script trigger fires, keyboard disappears
Portal refreshes with all records containing "A"
Keyboard pops up 

Type "D"
Script trigger fires, keyboard disappears
Portal refreshes with all records containing "AD"
Keyboard pops up 

Does anyone have any suggestions for speeding up the script in FM Go?

Is there a way to prevent the iPad keyboard from popping up and down during script execution?

I'm happy to share the file if it would help.  Thank you!

Outcomes