The principles are:
- set up your Central File to be accessible over the web. (You do not have to use IWP - in fact, don't use IWP.) For this example I'll call it Vet Database. To do that you need to set up port-forwarding on your router. You need to have a fixed public IP, or another work-around (such as No-IP)
- Create a copy of the file, call it 'Vet Database Central', and put it in the same folder as the Vet Database.
- In the Vet Database go to the relationship diagram and add as External Data Sources each of the tables from Vet Database Central.
- You now have direct access from the Vet Database (which will be the local version the vets bring with them) and the main database tables. They look exactly the same, are even called the same thing - they are indeed copies of exactly the same file (structure) but they are distinct different files, in different locations.
- Set up scripts to import from each table in your Vet Database (the local copy on the iPad) into the equivalent table you added from Vet Database Central.
- Cycle through the tables and import the records.
- Some tricky bits now (as I suggested before):
- having sent the records back to the Central File, are you going to delete them locally, or tag them as 'Exported', so as not to export them again? You need to check for a connection back to the Central File first, to make sure that you don't delete them when in fact they were never exported. It is the same problem as you must check for when importing after e-mailing.
- you said that you may be going to have Parent and Child records raised locally. You need to cover if you are going to have all records issued with a unique universal ID, and that is used everywhere, or whether the Central File will allocate each record the unique 'System' ID upon import. If so, you have to put in a prodecure to change the Parent ID in the imported Parent Records, and their associated Child Records that were raised locally.
One of the things you want to avoid is to literally have two versions of the file - a structure you use Centrally, and a slightly modified structure you use 'remotely'. If they are even slightly different you will end up doing all development work twice - once in each file. So you want to have one universal file that can act as either central or remote. For example, when you created the Vet Database Central copy and loaded that as an external source, it works at the central PC. But you don't want the remote iPads to carry that 2nd copy with them. When they go looking for 'Vet Database Central' you want them to search for the one that is on the web, back in your HQ. So you use File - Manage - External Data Sources and make a list of sources. You start with the Vet Database Central (so that the central file will see it and be happy) but you add a second one below it (like fmnet:/123.456.7.8 , being the public IP of your HQ's router). When the iPad can't find any copy of the 'Central' database on itself it shifts on down the list and will find the real HQ-Central file, as long as you have a web connection.
I don't know how many of the tricks and techniques are familiar to you. Like everything, they are 'easy when you know how' (and sometimes not so easy when 'we only thought we knew how'), but there are a lot of techniques piled in to your project. If it works when you e-mail the file - then do that. Get the rest of it working (interface etc) and you will always be able to add the direct import later. Probably around the same time as your colleagues get enthusiastic and want to have all notes available at all times to every iPad...
Your new post is loading...