This example shows off the two less used import actions ( Replace Data In Current Found Set and Update Matching Records ). Each of these imports is set to leave the total number of records in the file the same ( 10 ).
When you click the Import Replace, you can see the import dialog box and that its import action is set to Replace Data In Current Found Set. You will also notice that FileMaker has adjusted the found set in the destination file. You now have a found set of 2 files from the overall number of records. This is because the source file we are importing from only has 2 records. Using replace option makes FileMaker dynamically update the found set in the destination file to match the source file.
Be sure to click “OK” and you will notice that you still have the same number of records ( 10 ) but the first two records now indicate they contain replace data. This is because that is the data that is in the source file. You can open up the source file and change that data to something else. Come back to the destination file and run the script again. This will allow you to see how the changes can be made.
When the operation has been completed, you will notice that you are looking at the same number of overall records but we have a found set of one record. This is because there was only one matching record using the Company Name field between the two files. Only this one record was updated with the imported data. The record with the company name of Marvelous Products Company has been updated with the competitor information of ABC Company ( match data ).
An example file can be downloaded by clicking (here)
Here are some links to other posts that might be of interest in regards to this topic...
Importing Data Into Filemaker Explored ( part 1 )
Importing Data Into Filemaker Explored ( part 2 )
More info about the author and FileMaker in general, contact me at email@example.com.
© 2010 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.