Wednesday, December 24, 2008

FILEMAKER: Some Confusion About The Separation Model

From Dwayne Wright - Certified FileMaker 9 Developer
WEB: www.dwaynewright.com
EMAIL: info@dwaynewright.com
TWITTER: dwaynewright

CHAPTER 09: The Separation Model

I have seen some developers describe the separation model as a front end file with a table that has a single record with nothing but global fields used to filter a relationship to a back end file that has the data table. Many people describe the front end record as a header and the related data as the body (akin to what you see in standard list view).

I don’t agree with using the term of Separation Model to describe that process but that process does use the separation model. This is an old school method (pre-FileMaker 7) of using the separation model that isn’t needed with all the power and flexibility that was introduced with FileMaker 7. Now, if you are working with a solution that uses this system from a converted pre FileMaker 7 solution, I would suggest you take the opportunity to rework the solution to better harness the power a more modern version of FileMaker offers.

The idea of having a single record that can show a variety of related information based upon the tweaking of global fields is what I call a dashboard. Dashboards are a great design technique and can be used within a separation model setup. They can also be used in multiple file solutions or the all in one file solutions.

In the old school method, you would need to go to the data file to perform tasks like batch updating of records. With FileMaker 7 (and above) that isn’t the case because of the magic of table occurrences.

Case in point, my InBizness product has a single record that shows multiple options of related data. The layout is designed for sales reps and they can see client information, to do lists, follow up tasks, invoicing history and much more. This is a single file solution, so it does NOT use the separation model. It however does meet most of the criteria I described in the opening paragraph.

All you need to do is create a table occurrence you want and then create the layout for it in that file using that reference. All GTRR actions can go to that layout and show all the related data from that file without having to go to that file.

A big reason to never leave the interface file for your scripting is the use of script variables. Although there are techniques to pass variable data within files, they are usually cumbersome and potentially unreliable.
=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.

0 comments: