Developer’s Guide

Table Of Contents
Using JDBC to deliver your data 11-15
Field type Field name Field attribute
Date Date Purchased User defined entry field
Container Picture Graphic import
Text Serial Number User defined entry field
Text Information User defined entry field
Example 3: Creating the Visual Cafe
Inventory application
This example demonstrates how to build a Java front end to a
FileMaker database using the development tool Symantec’s Visual
Cafe Expert Edition for Windows and the FileMaker JDBC Driver.
The following steps are for creating a Java application that accesses
the inventory_db database.
Note Because the Visual Cafe DataBound Project Wizard does not
support spaces in database filenames or field names, or periods and
spaces in table names, this example uses a modified version of the
Asset Management.fp5 database that ships with FileMaker Pro,
called inventory_db (with no filename extension).
Install the example and the FileMaker JDBC Driver
If necessary, install the Visual Cafe example and the FileMaker
JDBC Driver.
Developer Extras\FileMaker, Inc\External FileMaker APIs\FileMaker JDBC
Driver \JDBC Examples \Visual Cafe 4.0 Expert Edition
Developer Extras\FileMaker, Inc\External FileMaker APIs\FileMaker JDBC
Driver\Fmpjdbc12.jar
The Visual Cafe folder contains the modified database file used in
this example and all of the completed files generated by the
DataBound Project Wizard for the application.
Set up Visual Cafe to use the FileMaker JDBC Driver
1. Start Visual Cafe 4.0 Expert Edition for Windows.
2. Choose Tools menu > Environment Options and click the Internal VM
tab. Then click New for the Classpath Settings.
3. Locate the Fmpjdbc12.jar file and add it to the SC.INI CLASSPATH
list to add the FileMaker JDBC Driver to the Visual Cafe
environment.
Open and share the inventory_db database
1. In FileMaker Pro, open the inventory_db file in the Visual Cafe
example folder:
Developer Extras\FileMaker, Inc\External FileMaker APIs\FileMaker JDBC
Driver \JDBC Examples \Visual Cafe 4.0 Expert Edition \inventory_db
2. Choose File menu > Sharing, verify that Web Companion is selected,
and click OK to share the database on the Web.
For information about setting up the Web Companion so that it’s
already selected in this dialog box, see
“Enabling the Web
Companion” on page 8-3.
Create a new Visual Cafe project
1. In Visual Cafe, choose File menu > New Project.
2. Select the DataBound Project Wizard template and click OK.