![]() I say “almost” because I have found a few cases that had to be broken into two transactions. I have been doing transactional scripting in FileMaker since FileMaker 7 shipped, and I can say that you can almost always re-write a script to be transaction safe. It will be as though the script never started. ![]() If you batch all your edits into a single commit then even the phone does ring you data will be ok. Luckily you can write your scripts in such a way that you can avoid this problem. It will just leave your data out of whack. If the phone rings in the middle of that script some of your changes will occur and some will not. This means that if you have a script that edits more than one record and does not batch the edits into a single commit, FM Go could cause you some problems. ![]() Also important to note is that On Close Scripts do not run. When this happens any uncommitted edits that the script has made is lost. But either way scripts can definitely be terminated. I say maybe because I am not sure if the scripts will have some period of time to complete, or if they are immediately killed. When FM Go is moved to the background either by the phone ringing or touching the Home Button, scripts that are running maybe terminated. The following results apply to both FileMaker files that are stored on the iPhone/iPad, or ones that are accesed on the server. But what I have found so far fits with my understanding of how the FileMaker engine works. Read on for more info.First let me say that all of this is based on some testing I did while flying back to LA. when FileMaker is sent to the back ground any scripts that are running are simply terminated. But if you have a large solution, you really do need to understand where you could run into some problems. Most simple solutions will just plain work. This is really only a problem for large complex solutions doing lots of scripted data manipulations. ![]() I can’t wait to start deploying on it but right now I need to get the word out about what happens when FileMaker Go is sent to the background by an incoming phone call, or by the user tapping the home button. I have been waiting for this for a long time.
0 Comments
Leave a Reply. |