CS 200 Spring 202009 – Advanced DatabasesIf I select a field on a layout•FileMaker grays out inappropriate Format menu items•selecting one of the active menu itemslets me change the appearance of the selected fieldWhat happens if nothing is selected & I select a Format menu item? what does it mean?Why is this an important question?49Generalizing
CS 200 Spring 202009 – Advanced DatabasesRemember SQL’s Create Index command?Here’s how FileMaker does itFileMaker will automatically index fields•to implement “Unique” or “Existing” data validationon the matched field in a related tablewhen the field is used to create a value listprovided you haven’t manually forced indexing offOtherwise, by default:•“Automatically turn indexing on if needed”In FileMaker•it’s unlikely you’ll ever need to manually turn indexing onbut you may want to turn it off to save file spacebecause FileMaker never will!•Other databases make up their own rules(By the way, FileMaker doesn’t use indices for sorting)50TAnd while we’re hereIndexing in FileMaker
CS 200 Spring 202009 – Advanced DatabasesNote especially the difference between•how a data value appears on a formeg 3.14•and what’s stored in the databaseeg 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582& note the menu items that control the appearance of each data type51The Format menu...Formats in FileMaker
CS 200 Spring 202009 – Advanced DatabasesThe Inspector52
CS 200 Spring 202009 – Advanced DatabasesYou can define as many layouts at you want•these are also called “views” of the data (SQL-speak)•give them meaningful names!!!You don’t have to include all fields on all layouts•defining a new field doesn’t cause it to appear on all layouts•by default, a new field is placed on the “current layout,”although there’s a preference to prevent thatIn FileMaker•data entry options are associated with a field’s definition•the appearance of a field is specified on the layout, and can vary•other databases may choose different conventionsYou can only see sub-summaries•when in Preview Mode or Browse Modeandif you have sorted by the relevant break field(s)•doing both — and remembering to do both — is a pain•FileMaker macros are handy for automating this (next week...)53Things That Might Confuse You in FileMaker(Incidentally, FileMaker allows you to userid-/password-protect a table, layouts, etc, and to access a database over the internet (there’s a more expensive version tuned for this.)
CS 200 Spring 202009 – Advanced DatabasesSQL joins vs FileMaker joins (“relationships”)•FileMaker is now built on top of an SQL engine•but does FileMaker’s GUI provide a way to generate and displayall possible SQL selects?FileMaker features typical of GUI-flavoured DBMS’s•forms withformatting of displayed valuesdata validationinput widgets (radio buttons, check boxes, pop-ups, etc)point-and-click-to-open (next week)query by example•reports and formatting of displayed valuessortingsummaries, sub-summaries, aggregate functionsWhy might someone prefer SQL?Why might someone prefer FileMaker?Another study question: compare & contrast database management with Excel & FileMaker54Summing Up