|
|
|
Navigate: | My Mac Online | The Archives | October 1999 | FileMaker 101 - Part 19 | |
![]() |
|
![]() Part 19
My Mac Magazine manavesh@mymac.com Documentation: External
Oops. There was a small mistake in last month's article. Near the beginning I had a few field names. Underneath I explained that one of them was a related field; but I got the name of the relationship wrong. It said: Last month I wrote about how to "comment" your work within FileMaker Pro. Now I'm going to continue with a discussion of various ways to document your work outside the database files themselves.
There a few reasons why you would want to do this:
For me, the main benefit of external documentation is that it is "searchable." In the case where I just couldn't find what a certain field did, or whether it was obsolete, I could read and compare printouts or search for it. I must admit that I rarely do this. For one thing it's time-consuming to create the documentation. I usually just bip madly between the layout, Field Definitions, Define Relationships, and the Script I might be writing until I somehow figure it out. Another problem is the old adage that you can't write the documentation until the development is finished; because as soon as you change anything the text is no longer accurate.
Despite all that there are some times when having a comprehensive external record is the only solution to clearing up a complicated mess, or for finding the needle in the haystack.
Commercial Programs The first program I'll mention is Analyser by WavesInMotion http://www.wmotion.com It has a very clear tabbed interface, with all the various parts listed at the top of the main window: Files, Fields, Relationships, Scripts, Passwords, etc.. You can get a great deal of info about items, especially Fields; its definition, other fields that refer to it, relationships that refer to it, scripts that have it in them, etc. It appears to get everything, even the steps of each script. The cost of the program is $159; it requires version 4. They also have a smaller program, DocuScript, that just works on scripts, allowing you to perform searches for a word. It's $59. ClickStats by ClickWorks is similar http://www.clickware.com. It has a "versioning" feature that allows you to compare one session to another. You can run several "sessions" on the same file(s). Then you can choose any two and ask for a comparison to see a general count of what's different. It appears to lack some detail on this, however. It doesn't get script steps, for example, just the names. It is similarly priced at $149, and also requires v.4.
SmartTools, at http://www.cetacean.com is a little different. It is not so much a file analysis tool as it is a souped-up template library. It can save your commonly used layouts, fields, relationships and scripts, ready to use again at the touch of a button. It costs $99. It doesn't require v.4, but it does require a clean version which has not been altered with Developer Dialogs to have larger windows (which mine have). It includes a OneClick runtime engine extension, unneeded for OneClick users. The odd thing about it however is that only a beta version is available. The final version is promised in September--of 1998! I imagine it works fine, since FileMaker's file format hasn't changed since v.3, but I'd make an inquiry before buying. Free (or dirt cheap) programs I have used
The first is a free AppleScript, FileMaker DB Lister v2.0, by Tony Williams, http://www.moreinfo.com.au/tonyw/fmp
It's main use, for my purposes, is to get the list of which fields (including ones you may have made invisible) are on each layout; there's no easy way do this within FileMaker (other than one at a time in the Overview submenu, File Menu). Next is Print2Pict by B. Raoult (that's all he has in the ReadMe; hard to find). ftp://ftp.amug.org//pub/amug/amug-files/publish/o-p/print2pict-3.7.1.sit.hqx This is an amazing tool, and many of the other programs listed here use it. It's actually a Chooser Extension. It shows up in the Page Setup dialog box just like a printer driver. It "prints" to a file from any application, and allows you to choose the format of the file: PICT, GIF, TIFF, or, in this case, text.
I use it to "print" the Field Definitions directly from FileMaker to a text file. FM does a great job on these, including all the info, especially for lookups.
Unfortunately, the output is just text. The parts are separated by spaces, not tabs; or even worse, by returns. There's no way to paste it into a spreadsheet as is, so some time must be spent in a good text editor (BBEdit Lite is an example) to clean it up into something more useful.
Text Capture FKey by James Walker (author of the original Text Editor Patches, the very useful OtherMenu and others) http://www.jwwalker.com
You can either put the FKey in the system (not so easy), use something like ATM or Master Juggler to load it, or use the free application FKeyDragger, which makes adding FKeys as simple as drag-and-drop. http://hyperarchive.lcs.mit.edu/HyperArchive/Archive/cfg/fkey-dragger-10.hqx What we need Text Capture FKey for in this case is to select and copy the Define Relationships dialog. You may not be able to get them all at one go if you have a lot. Paste the ones you get into the spreadsheet, then go back and get the rest. You'll still have to add tabs, one after the name of the relationship, and one after the name of the fields. This allows you to adjust the columns and see it all aligned properly.
Search the Spreadsheet
Troubleshooting a Problem
It's often confusing when there are too many fields to look at, so just copy the ones involved straight out of the Define Fields dialog.
You can copy a short script the same way, or you can use Print2Pict to print it as a text file. I've sometimes gone so far as to create a special layout and paste some of the field definitions, relationships, and scripts on it, just to have them handy when I come back with the same confusion later (duh).
Copying Scripts
There are also small commercial programs for copying scripts.
One is ProMaker Utils, by Peter Baanen of Troi Automatisering (also a prolific plug-ins author), http://www.troi.com
It also uses a OneClick runtime engine. He's just come out with an updated version with "interactive" field naming and drag-and-drop script step replication for full or partial scripts. If you're upgrading soon, FileMaker Pro version 5 will include the ability to import scripts from another file. It also will have a few of the layout template library features; but not many. I only know this from rumors (screenshots at AppleInsider http://www.appleinsider.com). By the time this article is out, there may be a public announcement.
Entity Relationship Diagrams If you are serious about databases, I highly recommend the book Database Design for Mere Mortals by Michael J. Hernandez. It's not about FileMaker. But he writes about relational database design in a way that transcends all applications, in plain everyday language. He also has some instruction on drawing these diagrams. Altogether a great book, especially for those with little knowledge of relational design (my hand's up).
It's all in your head It is also essential to learn from others. Examine example files others have made available on the Web. Read a FileMaker mailing list:
Dartmouth List: Very friendly, a good place to start; somewhat archaic List Server
Put this in the Subject line (I think?) of an email:
Blueworld FileMaker Pro List: Developers, all levels. Just click this when online:
fmpro-on@blueworld.com
>
To search TechInfo for articles go to the FMI website
Websites with example and utility files:
Fenton Jones
Websites mentioned:
FileMaker 101 - Previous Columns
|
|
Copyright ©1995-2000 My Mac Productions, All Rights Reserved |