![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I've done a test upgrade, and alot of scripts we have for automated processes (IE, the script is running on a client machine in a loop) seem to be failing. It looks as though I'm having to add Commit records when copying data using Set Field from one field to another field in another file. Is there anyway around this behavior? We have LOTS of scripts, and finding all the places where i need a commit record will quickly become time consuming. Any ideas? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Watch out for performance problems too. I've seen some nasty ones crop up with upgraded solutions. Drop Down Value Lists that take a minute to populate (workaround: convert to popup menus). |
#5
| |||
| |||
|
|
42 wrote: Watch out for performance problems too. I've seen some nasty ones crop up with upgraded solutions. Drop Down Value Lists that take a minute to populate (workaround: convert to popup menus). In case you missed it, a free FM7 upgrade was released last week, specifically to address this value list problem. FM 7.0v3a is available in the download section of FileMaker's website. |
#6
| |||
| |||
|
|
Don't stress on it & plan for a database rebuild. FM7/8 is such a radical departure from 5/6 that in my opinion, once you've got your solution working well enough to be usable, start building its replacement. |
#7
| |||
| |||
|
|
42 wrote: Don't stress on it & plan for a database rebuild. FM7/8 is such a radical departure from 5/6 that in my opinion, once you've got your solution working well enough to be usable, start building its replacement. How about FM just fixes Set Field instead? Did I just read correctly that in FM7/8 that you can't trust Set Field? |
#8
| |||
| |||
|
|
42 wrote: Don't stress on it & plan for a database rebuild. FM7/8 is such a radical departure from 5/6 that in my opinion, once you've got your solution working well enough to be usable, start building its replacement. How about FM just fixes Set Field instead? Did I just read correctly that in FM7/8 that you can't trust Set Field? |

#9
| |||
| |||
|
|
It's not that you can't trust Set Field, it's just that you need to plan for its new behavior. Prior to FM7, the Set Field step would lock a record, change the data, and unlock (exit) the record. In FM7/8, Set Field will lock the record if it's not already locked, change the data, and will remain in the locked record. The benefit of this is that you can now run a series of Set Field steps without the time and resources it takes to lock and unlock the record for each step. |
|
Now you just have to remember to include a Commit Records step at the end of each script (or don't include this step if you want to leave the cursor in a field and let the user make more edits or revert all your changes). |
#10
| |||
| |||
|
|
It's not that you can't trust Set Field, it's just that you need to plan for its new behavior. Prior to FM7, the Set Field step would lock a record, change the data, and unlock (exit) the record. In FM7/8, Set Field will lock the record if it's not already locked, change the data, and will remain in the locked record. The benefit of this is that you can now run a series of Set Field steps without the time and resources it takes to lock and unlock the record for each step. |
|
Now you just have to remember to include a Commit Records step at the end of each script (or don't include this step if you want to leave the cursor in a field and let the user make more edits or revert all your changes). |
![]() |
| Thread Tools | |
| Display Modes | |
| |