Using the Database Design Report

 <  Day Day Up  >  

For additional discussion of the Database Design Report, see "Database Design Report," p. 780 .


As soon as your solution has been filled with comments, descriptions, and meaningful element names , it is time to begin pulling the documentation together. FileMaker Developer 7 includes a Database Design Report (DDR) feature that is quite useful and may very well stand as the centerpiece for your system documentation. The report includes an overview of the system, along with detailed information about your database schema, including tables, fields, relationships, layouts, value lists, scripts, accounts, privilege sets, extended privileges, and custom functions. The report can be created as an integrated set of linked HTML documents or as a set of XML files. (The option to export the DDR as a FileMaker file, which was available in the previous version of FileMaker Developer, is no longer available in FileMaker Developer 7.)

Creating a DDR

Creating a Database Design Report is a simple task. First, you must have FileMaker Developer and you must open all the files that you want to include in the report. The files must be opened with an account that has full access privileges. After the files have been opened, choose F ile, Database Desi g n Report from the F ile menu to display the dialog box that you see in Figure D.3.

Figure D.3. FileMaker Developer's Database Design Report can document many aspects of your FileMaker databases.

graphics/ap04fig03.jpg


By default, all tables in all available files are included in the report. You can uncheck files or tables that you do not want to include. You can also specify the types of information to include for each file. Choose either HTML or XML for the report format. Finally, click the Create button and specify the location to save the report files.

If you're not sure whether the HTML or XML version of the DDR is more useful to you, think of it this way: The HTML version produces a set of linked Web pages that you can open and navigate immediately in a browser. The XML output is more appropriate if you need the data in a raw form and plan to manipulate it in some way before viewing or presenting it. One type of manipulation might consist of writing one or more XSLT stylesheets to transform the DDR XML data into a form suitable for importing into a FileMaker database.

Working with the DDR in HTML

The HTML version of the DDR includes a Summary.html document along with three additional HTML documents ( <filename> _ReportFrame.html , <filename> _TOCFrame.html , and <filename> .html ) for each of the FileMaker files in your solution. These three files all work together to create a frame-based view of database information for each database file. A Styles.css file is also created. This file includes formatting information used by all the HTML documents. To view the report, open the Summary.html file in any frames -capable Web browser. See Figure D.4 for an example of the Report Overview. Each of the solution's files is listed, along with counts of elements within those files. Click on a filename or any of the element counts to view details. All the details for a particular file are included on one (possibly lengthy) page. Use the navigation frame at the left side of the window to quickly move to the section you are interested in. You might also use your browser's Find feature to locate a particular element within the report.

Figure D.4. FileMaker Developer can produce a Database Design Report in an HTML format.
graphics/ap04fig04.gif

TIP

If you want to distribute the HTML-based DDR, one way is, of course, to host the files on a Web server and distribute the URL (making sure you give it only to people who should be allowed to see the internals of your database!) If you feel that hosting the files on the Web is insecure , or Web hosting is impractical for other reasons, you can distribute the HTML files as a group . If you do this, make sure to keep all the files together, in the same relative positions and with the same filenames as they had when they were first generated.


The DDR includes many hyperlinks that make it easy to navigate the report. For instance, the Fields section lists every layout, relationship, script, and value list that uses each field. Each of the listed items is a link that displays the element.

Using the XML version

When you choose to generate the DDR as XML, you'll get a file called Summary.xml , and an additional file called <filename> .xml for each database file that you choose to analyze. The XML version of the DDR includes all the information in the HTML version, as well as many more details. (In particular, you get a great deal more information about the position and styling of layout objects.) Although the XML DDR can be viewed in any text editor, you will likely prefer to use a program that understands XML (for example, an XML-aware Web browser such as Internet Explorer or Mozilla, or an XML editor such as Oxygen or XMLSpy.) You may also want to use an XSL style sheet to format or transform the raw XML. Figure D.5 shows an overview of an XML DDR viewed with most of the entities collapsed . The XML DDR contains an extensive amount of data broken down into ten sections: BaseTableCatalog , RelationshipGraph , LayoutCatalog , ValueListCatalog , ScriptCatalog , AccountCatalog , PrivilegesCatalog , ExtendedPrivilegeCatalog , CustomFunctionCatalog , and Options . Each of these sections contains information about one area of the database. The XML element names in each section are relatively self-explanatory.

Figure D.5. FileMaker Developer can produce a Database Design Report in an XML format.
graphics/ap04fig05.gif

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net