Claris Home Page provides an assistant that you can use to create all the necessary FileMaker forms to connect to a database. With the assistant, you specify the filename of the database file and the layout, the fields you want to appear on specific pages, and the access privileges and features you want to provide to your Web audience. The FileMaker Connection Assistant creates all of the necessary form pages and links based on the options you choose.
To use the assistant, you need the following:
To open the FileMaker Connection Assistant:
The assistant displays a series of panels. When you complete the settings on a panel, click Next to continue.
Note The assistant is designed to be completed in a single session. When you click Cancel, Claris Home Page ends the session, and all settings entered up to that point are lost.
On the Database Selection panel in the FileMaker Connection Assistant, you see the names of databases running on the server you specify.
To select a database:
Important If the connection to a FileMaker Pro database is unsuccessful, you will want to verify the following:
On the Choose a FileMaker Layout panel, you can choose the FileMaker layout containing the fields you want. The fields on the layout you select will be used by the assistant to create the pages of your site. Make sure the layout contains all the fields that will be used for the entire site, which may include fields for searching and sorting the database as well as fields that will be used to create new records and to display record information. Select the layout name in the Layout pop-up menu, and then click Next to continue with the FileMaker Connection Assistant.
On the Feature Selection panel in the FileMaker Connection Assistant, you set options for how you want your Web audience to interact with your database.
Using the assistant, you can create forms in your Web pages that allow your Web audience to:
The options you select on the Feature Selection panel determine which pages the assistant creates. The assistant creates a page for every option you select as well as pages for displaying replies and error messages.
If you select this option on the Feature Selection panel |
The assistant creates these pages |
With these filenames |
---|---|---|
Search a database for specific information and return a list of results |
Index page |
default.htm |
View details on individual records returned from a search |
Index page |
default.htm |
Edit individual records |
Index page |
default.htm |
Delete individual records |
Index page |
default.htm |
Duplicate individual records |
Index page |
default.htm |
Add new records to a database |
Index page |
default.htm |
When you click Next, the FileMaker Connection Assistant displays additional panels for setting options for each page, based on your selections.
For example, if you create a site that lets your Web audience only search and view records, the FileMaker Connection Assistant creates the following pages:
The FileMaker Connection Assistant creates all the necessary pages and saves them in a folder you specify. You can edit the pages further using the Claris Home Page editing tools and the FileMaker Connection Libraries. Choose FileMaker Form Library or FileMaker Reference Library from the View menu (Windows) or the Window menu (Macintosh).
You can specify which database fields you want to appear in the Search page of your Web site. In addition, you can specify whether the search information for each field is to be defined by your Web audience, whether the search is fixed, or a combination of fixed search criteria and criteria specified by your Web audience.
The Web audience can type search criteria in the search fields and specify field comparison operators. For example, in a search for a name in the Name field of a database, your Web audience can type search criteria in the field, and then they can choose "begins with" from the field comparison pop-up menu. If the Web viewer typed "Ignat" in the Name field as the search criteria, then the search results return records where the first characters of the Name field begin with that string of characters (for example, Ignat, Ignatius, Ignatowski).
In a fixed search, you predefine the search criteria (including the field comparison operator) for each field in the search. Your Web audience does not need to type search criteria in a field or choose the field comparison operator.
You can use a fixed search to allow your audience to search for and display a set of records that is of interest only to them. For example, if your database contained daily menu information, your Web audience might be accessing your site to see only the menu choices for the day. Your fixed search would be on today's date, and the search results would display records (menu information) only for the current date.
To set up the Search page:
Click |
To |
---|---|
Specified by Web user |
Have search results based on search criteria your audience specifies for that field. |
Fixed ("canned") search |
Have search results based on the operator and search value you specify for that field. |
Choose this field comparison operator |
To show these search results to your Web audience |
---|---|
Equal to |
Records that match the search criteria exactly |
Not equal to |
All records except those that match the search criteria |
Less than |
Records with values less than the search criteria |
Less than or equal |
Records with values less than or exactly equal to the search criteria values |
Greater than |
Records with values greater than the search criteria |
Greater than or equal |
Records with values greater than or exactly equal to the search criteria values |
Contains |
Records that contain the character or string of characters specified in the search criteria |
Begins with |
Records with the character or string of characters specified in the search criteria at the beginning of a value |
Ends with |
Records with the character or string of characters specified in the search criteria at the end of a value |
The Search page logical operator determines how records are searched when a search request is submitted.
If the option is set to OR, the records in the search results are returned based on the search criteria matching one or more fields. If the option is set to AND, the records in the search results are returned based on all the search criteria matching.
To set the logical operator for all searches made by your Web audience, click Fixed. To let your Web audience choose the logical operator for their searches, click User specified.
After setting the Search page logical operator, click Next. The Search Results panel appears.
Once a search request is submitted, the search results are returned to the Web viewer as a list of records that display on a separate Search Results page. You set options for this page on the Search Results panel in the FileMaker Connection Assistant.
To set up the Search Results page:
On the Sort Results panel, you can specify whether the results for the search are sorted or not.
After setting the sorting options, click Next. If you selected the Yes - Specify a predetermined sort order option, the Predetermined sort order panel appears. Otherwise, panels for setting up any remaining pages in your Web site appear.
You can choose to sort search results so that records return to your Web audience in a specified order.
To set a predetermined sort order for your search results:
After setting the predetermined sort order for your search results, click Next. Panels for setting up any remaining pages in your Web site appear.
The assistant creates the Details page to display an individual record on an entire page. The Details page for a record appears in the browser when a Web viewer clicks the link (the contents of the first field for that record) in the list of records displayed in the Search Results page.
If you selected record modification privileges on the Feature Selection panel, your Web audience can edit, delete, or duplicate individual records from the Details page.
To set up the Details page:
If you design your site so that your Web audience will be able to create new records, you can set options for information they can type and submit as a new record in the New Record Page panel.
To set options for the New Record page:
The Additional Pages panel appears and displays information about additional reply and error pages that the assistant creates based on the features and privileges you set in previous panels. Click Next, and then the Style panel appears.
On the Style panel of the FileMaker Connection Assistant, you set the page background and text style of your FileMaker Pro form pages.
The assistant provides a list of pre-made styles and displays an example of each one on the left side of the Style panel. You can change the text and background color of these styles and use your own GIF image for the background if you want.
To set the basic page style for your FileMaker Pro form pages:
The Final hints and suggestions panel appears. Click Next, and the Location panel appears.
The last step before finishing the FileMaker Connection Assistant is to specify a location and folder for the files. On the Location panel, click New Folder to create a new folder for your site; or click Existing Folder to specify the name and location of an existing folder that will contain your FileMaker Pro form pages. Then click Create to create the pages.
The FileMaker Connection Assistant creates the FileMaker Pro form pages based on the options you specified and inserts all the necessary CDML tags and links. Claris Home Page displays your site in the Site Editor, and opens the ReadMe file for the site you just created with the assistant. You can double-click the icon of any page in the Site Editor to open it and make changes. See Using the Site Editor for information on using the Site Editor.
Be sure to click the Consolidate button
on the Site Editor toolbar to copy the image files into the new site
folder.
The pages created by the FileMaker Connection Assistant are designed to be used right away without modification. For information on transferring your pages to a server, see Copying your files to FileMaker Pro and Testing the database in your site for information on testing the site.
If you want to customize the appearance of the pages you created with the assistant, you can use the Claris Home Page editing tools to make changes. You can use the FileMaker Connection Libraries to edit and expand the database functionality of the site and to create new FileMaker Pro form pages as well. See the following sections "Editing FileMaker Pro form pages" and "Using the FileMaker Connection Libraries" for more information.
Note Some of the CDML tags in the FileMaker Pro form pages that the assistant creates are required tags. It is better not to edit the required CDML tags in the pages the assistant creates. Changing a required CDML tag (such as the filename of the database the entire site depends on) in one file requires changing the database filename in other files that refer to it. See Editing required CDML tags for more information.