Categories
FileMaker Tips

Keyboard Shortcut: Opening Hard to Find Relationship Icons

Relationships Graph Nav Tip

Here’s a tip from highly respected Marin County FileMaker developer, Ted Fehlhaber:

Finding and Opening the Relationship Dialog
Anyone whose tried working with a crowded Relationships Graph has run into the problem of finding the right relationships icon (those little boxes between Table Occurrences). Once found, it can be difficult to select and open the right one.

Here’s the secret: If you select a TO that has only one relationship in a particular direction and hit the arrow key in that same direction, the first hop will select the Relationship icon. From there, Cmd-O (Mac) or Cntrl-O (PC) will open up that Relationship dialog. No more clicking around to try to select the right one.

Categories
FileMaker Tips

Saying Goodbye to Global Glitches

globals list in field definitions

Now that there is no longer a global field type in FileMaker 7, I find that I often forget to go to the storage tab and click the Use global storage check box. Then later I find out the hard way. Something doesn’t work and after all sorts of investigations I figure out that my global field isn’t really a global. I feel pretty silly and have wasted valuable time.

Something that helps me avoid this is naming my global fields so that they all group together. In FileMaker 6, I was happily putting an underscore in front of each of my global fields like this: _InvoiceNum. That conveniently sorted my globals to the bottom of the alphabetical sort order where my clients wouldn’t stumble over them very often. In FileMaker 7, the underscore sorts to the top, so I’ve chosen to put a zg in front of the field name like this: zg_InvoiceNum. Not pretty, but it accomplishes my purpose.

I now can periodically just go to the bottom of my table field lists as I am developing and scan through the Options column of my globals to make sure they are all set as globals. Such a scan would be a great checklist item before turning over a solution to your client. I put it on my checklist.

Categories
FileMaker Wishlist

FileMaker 7 Wishlist: We need a relationships list too

With large database projects like mine with 40 base tables and 140 table occurrences, I need to be able to quickly lookup a TO. I really do. Maybe I don’t have the best organized database diagram. But still. I’ve heard rumblings that improvements in the Database diagram area are in the works. All I can say is – the sooner the better.

Categories
FileMaker Tips Migrating to FM7

FileMaker 7 Migration Tip: Use FileMaker 6 too

ToolBoxIcon_smallI should have started doing this sooner. I’ve found that the FileMaker 6 versions of files I’m migrating to 7 are really handy. I can be in the Database Design dialog of 7 and switch to FileMaker 6 and open the Define relationships dialog for the file I’m working on without disturbing my 7 dialog.

One of the chores of moving FileMaker 6 files into a single file 7 solution is fixing calculations that break in FMrobot because the relationships they are based on aren’t defined yet in 7. What you get is a commented out calculation with the FM6 relationship name. I can open up the 6 Define Relationships dialog for that named relationship and see which fields I need to connect in 7 to make my calculation work.

To save time, I’ve made screenshots of the Define Relationships dialogs in 6 so I have a list of the names of the relationships and matching fields. I widen the dialog columns first so that I can see the full relationship and field names. Then I keep those lists in one corner of my screen for reference as I work in 7, creating relationships in the database dialog. Works great.

Another help is to open up the files you are migrating in 7 and use them for reference – this is also where you’ll do your copying and pasting of layouts. So when I’m working with the Jobs table in my single-file database, I have the 7 version of the individual Jobs file open too. Looking at the simpler Relationships diagram for this single table is much easier on the eye – especially if you spend a little while organizing that diagram. I color-coded my individual file diagrams, so they were very usable for reference (this was when I thought I was going to release a multi-file 7 solution). Since the names are inherited from 6, it’s easy to see the 7 version working and then replicate that in the single-file diagram.

As you might imagine, a big 20″ screen or two screens can be an advantage here. If you’ve got the real estate, have these open:

Textedit: you’ll want a text editor handy to hold copied calculations, relationships and field names.

Preview to see your screenshots of FM6 define relationships screens

FileMaker 6 versions of the files you are migrating.

FileMaker 7 versions of the individual files you are migrating. I keep them stacked up to the side so I can open them while having my single-file 7 database open as the main event.

This set-up will make you quite efficient. If you can spare the change, Waves in Motion’s Analyzer 4 can be helpful too. More on that later.

Categories
FileMaker Tips

FileMaker 7: Printing Field Definitions

ToolBoxIcon_smallIf you’ve had trouble printing field definitions in FileMaker 7, it’s because the functionality has moved and improved. The print button is now in the field list under Define Database in the lower left corner.

The second thing to know to avoid frustration is that the Print button only prints selected fields. If one field is selected, only one field will print. If you want the full list of field definitions, just select all (Cmd-A or Cntrl-A) when in the field list and click the Print button.

You can now be selective about which field definitions you print. It’s not an all or nothing proposition anymore. Just shift-click to select a group of fields and cmd-click to select individual fields.

Now you can save trees when you print field definitions. You don’t have to print out a really long list just to see a few calculations in hard copy. Another benefit that developers will appreciate is that you can give your customer a selective list of field definitions for documentation or training purposes. That could be handy.

Categories
FileMaker Deals

FileMaker 7 and 6 hot deals

FM7_Box_SmallI was surprised to see that eDirect Software is selling FileMaker 7 for Windows full copies CD-only without the manual and box for $109.99. They are also selling FileMaker 6 for $69.99. I got directed by a Google ad on FM Forums. You can call them toll free at 866-449-5567. I’m not making money off this in case you are wondering. Just an amazing offer if you are in the market for FileMaker 6 or 7.

I haven’t bought from eDirect before but they’ve got something that says “Overall Store Rating: 5 stars Amazon Marketplace” featured prominently and my guess is that they couldn’t get away with that if it weren’t true. Worth checking out if you need some extra copies of 6 or 7 for Windows.

Categories
FileMaker Discoveries

Free FileMaker 7 Custom Functions

I just googled for FileMaker 7 custom functions and found Brian Dunning’s nice little database of free custom functions. There are 121 right now. Here are some quick favorites:

Color (text). This custom function has about 150 pre-programmed colors in it and also will handle hex colors if you lead with a # symbol. Geoff Coffey.

CreditCardName ( CreditCardNumber ) Based on Brian Dunning’s Card Validator, takes 15 or 16 digit credit card number with or without dashes and returns the card type. Also checks for validity. Geoff Wells.

MoneyToWords(NumberField). Takes a numeric value and converts it to words for a check. Example: 1234.56 = One Thousand, Two Hundred Thirty Four Dollars and Fifty Six cents. Don Wieland.

RightPosition ( text ; searchstring ). Shows everything to the right of the search string in text. Example: RightPosition ( “thequickbrownfox” ; “quick” ) = quickbrownfox. Bob Shockey.

You can copy and paste the full formulas for these custom functions into your own custom functions. Check this out!

Categories
FileMaker Discoveries FileMaker Tips FileMaker Utilities

FileMaker 7 Custom Functions Rock

FM_Dev7_BoxI just got a big smile on my face a minute ago. I’ve been careful not to put spaces into table, field, layout and table occurrence names in building Studio Manager 7 because web publishing and other IT tools can’t handle spaces. So much for user friendly!

I’m using underscores instead of spaces. It’s readable but geeky. But sometimes I want to display something with spaces instead of the underlines. For example, I put the base Table name on each layout. Since I expect to need this ability to use spaces instead of underlines often, I decided to create a custom function for it.

You need the developer version of FileMaker 7 which I have (it’s free if you are a FileMaker Solutions Alliance member and otherwise costs an extra $200 over the basic version).

It takes about 2 seconds to create a custom function like this. You just choose File/Define–>Custom Functions and then name it, name any parameters you need and put in the calculation which in this case looks like this: Substitute ( text ; “_” ; ” ” ). I named the function subSpace.

I got the smile on my face after using my custom function to get the underscores out of the table name with this calculation: TableName = subSpace(gTable).

I forgot to mention that I had already created a Custom Function for Get(LayoutTableName). That’s where the gTable comes from.

At the most basic level, these custom functions serve as great little *Type-It-For-Me* shortcuts. I’ll be covering Custom Functions more in the future as I find really useful ones to share.

Categories
FileMaker News

Important Free FileMaker 7 v3 Upgrades

FileMaker 7Today FileMaker Inc. announced and made available for download the 7.03 updaters for FileMaker 7 and FileMaker Developer 7. These are must have upgrades according to my sources and are recommended for all FileMaker 7 users. I’m still doing the download myself, so can’t give you first hand information yet. The Mac OS X download is 26 mb.

Here’s what the download page says about the upgrades:

FM7 v3: Includes changes to text editing, layout editing, scripting, calculations, import/export and more.

FM Dev 7 v3: Includes changes to script debugger, DDR, and Developer Utilities and more.

Go get the downloads now. There’s a combo download for Mac and 2 downloads for PC.

The included 8 page ReadMe pdf has a thorough breakdown of what’s been fixed, changed and added in these updates.

Categories
Migrating to FM7

FM7: What it takes to migrate to a single file solution

SM7 relationships graph

After attending the FileMaker Developer’s Conference a couple weeks ago, we are back to looking to see if we can do a single file solution for our product, Studio Manager, in the near rather than distant future. Unless money starts falling from the skies and we can hire more help, we will still release a multi-file version with minimal changes first. We’ve been working feverishly on the single file version lately to see just how much work it is going to take to deliver this solution. It is a LOT of work.

Again, the quickest way to 7 is to plan, prepare, convert, fix what broke, enhance slightly and deploy. Since attending Filemaker 7 Bootcamp in July, this has been our target. We are well along that path in the testing and refinement stages now. We are still hopeful that we can get the multiple file version out by October 1st.

Here’s what’s involved to migrate to 7 the hard way without simply starting all the way from scratch:

1. Run the best version of your files through MetaDataMagic.

2. Clean Up the File References so your files will open quickly in 7. MDM can do that with auto-fix with a little manual tweeking using the program. It’s easy. Document and clean up passwords so that you can open the files at all in 7. You can always sneak back into the FM6 version to see what went wrong if need be. But this might require reconversion – a pain.

3. Use FMrobot to convert all these FileMaker 6 files to tables in FileMaker 7 within a single file: FileMaker 7’s holy grail. You’ll get all the fields but most of the calculated fields will be commented out. Once your relationships diagram is clean, most of the calculations will work by just deleting the comment syntax, but the calcs with relationship references will only work if the relationship names match.

4. Look at the Conversion Issues in MDM and clean up your FM6 files as much as you can.

5. Convert all your files to FM7 by dropping the folder onto the FM7 application icon (Mac) or blank FM7 window (Win).

6. You have no decent layouts right now in the 7 version just fields and raw layouts with no formatting, logical placement, color, tabs, buttons or value lists. Decide on screen sizes for the new layouts you need. I decided to go with 845 x 650. We are assuming 1024×768 minimum screens for Studio Manager 7. This is up from 650 x 500.

7. Import sample data file by file.

8. Create blank layouts and copy and paste in your old layouts. Increase their size as planned. You can duplicate layouts and modify when you’ve got several that are similar.

9. Come up with a table navigation script that can get you from one table to another (such as from Contacts to Jobs to Timesheets and back to Contacts). The script needs to keep track of the layout you were on in Contacts so that when you eventually return to Contacts, you come back to the same layout. This is not automatic as it was in FM6. We created a Tables table that has a field called LastLayout so that every time you switch tables, you write the name of the layout you are leaving from into this table. When you move to a new table, you lookup that table’s LastLayout and navigate to it. It works!

10. Come up with a scheme for layout navigation buttons. Control all layout navigation within the same table with a single script. This is possible using the script parameters. The minimal scheme would have the layout name as the script parameter in each button. The only problem with it is that if you change a layout name, all the buttons that point to that layout break.

11. Figure out how to handle the fact that you now have a single layout navigation button and a single Scripts menu for your entire solution instead of separate ones for each file. You’ll need to sharply limit what appears on these lists or they will be too long and cumbersome.

12. Organize, re-organize, color code and carefully name and label the elements of a huge relationships graph. As you go along, this graph gets bigger and more complex all the time. We didn’t really fully anticipate the size and complexity this graph would have as it gets close to full size.

13. After you’ve got your navigation buttons working and all the layouts you are sure you’ll need, your next challenge is to script it all. Remember, the scripts didn’t come over with FMrobot. You can import your scripts from your old files and group and name them so that you can keep track of everything. This is your chance to decide not to duplicate all functionality. In many cases you’ll need to modify the scripts in some way to get them to work properly.

14. Get a journal going to capture the problems you encounter, the changes you are making and the ideas you are getting, etc.

15. Start using the ability to write field comments and to comment within calculations as opportunities arise.

16. Stay alert to new ways of doing things that will save time or provide more value, but keep on task. Don’t let feature creep keep you from completing your version 1.0. Just note other possiblities as you go along. Only the best of the best ideas that appear to offer immediate rewards should be introduced into your development process at this point.

17. Test, fix and polish.