11 posts in this topic
I have a Tab-Separated Text File which I want to import to a database that I just created in FileMaker Pro 15. The text file essentially is a log of events, for instance, one line describes an order, another line describes a payment that has been made. The problem is that I somehow need to import all these lines into different tables. I want all lines in the log file that describe a payment in a table called Payments, and all lines that describe an order in a table called Orders for example.
I'm just starting out with FileMaker so forgive me if there is an obvious solution that I'm not aware of. I have a background in software development, so the only solution that I can think of is writing a small program myself that does all the parsing for me and creates separate text files that contain all the orders and payments and other events that have been logged in the file. Then I could simply import each file into the table I need all the data in.
So to sum everything up, my main question is if there is a way to somehow parse the text file before importing it. I know that you can create custom scripts in FileMaker but I'm not sure if what I need to do can be done just with that.
Thanks in advance,
By Gently Does It
I am working in a biology lab and have developed several basic databases using filemaker 11 to help the lab organise their stocks of chemicals and so on. We have a fairly onerous excel sheet that we have to fill out for registering certain new reagents we make with the regulatory authorities and as these are a pain to use, they are not filled out regularly enough. I would like to simplify this for everyone by making a filemaker form/database that will automatically fill out as much detail as possible.
The data in question is that when we clone a piece of DNA we need to insert this into several different DNA vectors that are used for different things. Whenever this one particular piece of DNA is inserted into a new vector it must be registered, so for one piece of DNA there may be , lets say 6 individual entries in the database, all saying more or less similar things, but just having different target vectors. I hope this isn’t already sounding to weird.
I have a plan that I will have a ‘home screen’ with a field for entering the name of the DNA and then some tick boxes for each of the common target vectors. What I would like is that all my colleagues will need to do is tick the boxes for the vectors they want to clone the DNA into and filemaker will then automatically populate a new entry for each of the vectors specifically for the new DNA they have cloned. As I have some basic experience, but am admittedly very limited in my scripting knowledge, I am unsure as to how best to do this. Would it be best to have a button next to each of the vectors instead of a tick box that would run a script that would take the name of the DNA in the field and then make a new entry based on the associated vector? If so can anyone suggest how this would be best organised. I am guessing I only need a single table with two layouts, one for the home screen and one for viewing all the entries.
I’m sorry if this seems a bit convoluted.
Thanks for any help.
Is there a way in AppleScript to trap if the connection is lost and have an AppleScript act on this?By ggt667
Is there a way in AppleScript to trap if the connection is lost and have an AppleScript act on this?
At the risk of asking and answering myself( AppleScript below )
repeat tell application "FileMaker Pro" try database "db" on error do shell script "sudo shutdown -r now" with administrator privileges end try end tell delay 59 -- 59 secs end repeat
By James WHL
A client of mine has an Windows 2008 Server which runs an SQL Server.
Because he doesn't have another machine and (Due To some reason, my client do not wish to mess with current SQL database structure),
so I will like to ins tall FM 11 runtime onto the same machine,
The runtime solution is to schedule login to SQL server to perform importing / filtering and exporting data report.
My question is :...
Has someone ever done this and can it be done?
Possible for FM to login onto same machine to access SQL DB ? Thanks!
By Peter Barfield
Not sure if this is the relevant area however, I couldn't seem to find a scripting section
What I would like to do and I have had no success so far is the following scenario.
I have database which stores references to files in container field located on a folder on a shared computer.
What I want to do is have a script which when run populates the database with the names of those files located in the folders on the computer and create a new record for those not already present and if they are already present ignore the import.
I have tried a test script which gets the documents path and loops through each record however I get file unknown when debugging and that is as far as it goes.
The script in no one handles the above scenario of omitting and inserting only new docs it was just a test to see if it was possible to import via this method. From what I can see the script is asking for a particular filename and if it can't be found it throws the error. That though is no good as essentially the filename is in a sense unknown at the time of import and that is what the purpose of the script would be i.e. too find those files and create a new record with reference only in a container.
Documentation on this is either non existent or sparse and confusing to say the least (or at least that's how I find it)
Any enlightenment would be appreciated.