Automated Export/Import Script for Upgrades
Posted: Thu Apr 09, 2009 3:08 pm
Hi, I need to create an automated way to export the user data out of all the data tables and then import it back into (a modified version of) the same template. This is to facilitate software upgrades for my customers. I have 1000s of customers using the software I develop.
To be clear, I just want to export the data the users have entered... none of the UI data needed for the charts, calendar, etc... Just the contact, projects, invoices, etc.
In previous solutions I've done this by creating separate scripts that export the data from each table into generic FileMaker Pro format files. Then I create a single master script that calls all of these individual scripts to execute the entire export with one button click.
I followed this export script up with matching import scripts that import all of the exported data files back into the (modified) template with a single button click as well. This makes upgrades simple for my users.
Is there a slick way to automate this that you know of? The primary issue is making sure the k_prime fields are reset to auto-enter new serial numbers that are not duplicates, i.e. one number sequentially higher than any of the data that is imported.
I've been very successful with this in the past, but must admit I'm still more familiar with completing the task using multi-file single-table solutions than with this single file multi-table solution. The number of layouts and TOs do to it in this single file solution the way I used to do it in my multi-file solution seems quite daunting.
Thanks in advance. -Charlie
To be clear, I just want to export the data the users have entered... none of the UI data needed for the charts, calendar, etc... Just the contact, projects, invoices, etc.
In previous solutions I've done this by creating separate scripts that export the data from each table into generic FileMaker Pro format files. Then I create a single master script that calls all of these individual scripts to execute the entire export with one button click.
I followed this export script up with matching import scripts that import all of the exported data files back into the (modified) template with a single button click as well. This makes upgrades simple for my users.
Is there a slick way to automate this that you know of? The primary issue is making sure the k_prime fields are reset to auto-enter new serial numbers that are not duplicates, i.e. one number sequentially higher than any of the data that is imported.
I've been very successful with this in the past, but must admit I'm still more familiar with completing the task using multi-file single-table solutions than with this single file multi-table solution. The number of layouts and TOs do to it in this single file solution the way I used to do it in my multi-file solution seems quite daunting.
Thanks in advance. -Charlie