Create layouts for data access

A generated client reads and writes data through a FileMaker layout. The layout defines the table-occurrence context, exposed fields, portals, value lists, and accessible records.

Use dedicated data layouts

A dedicated data layout creates a stable data contract independent of user-facing screens. Focus each layout on a single table occurrence and include only fields required by the app.

Follow consistent layout naming standards so other developers recognize its purpose. Because the layout exposes metadata and records rather than a user interface, visual styling is not necessary.

Place required objects

Place every field the generated client needs to read or modify, including primary keys and fields used for finds, sorting, and validation.

For related data, ensure a valid relationship exists from the layout's table occurrence. Name portals consistently to support generated portal types. Value lists attached to fields become part of generated validation schemas when enabled.

Avoid exposing unnecessary fields. FileMaker privileges provide access control, but a minimal layout contract simplifies schema auditing and maintenance.

Add the layout to Typegen

Add the layout name and TypeScript schema name to the app's adk.config.json, then run Typegen to generate schemas and client methods. See adk.config.json and Generate types with Typegen.

Change a data layout safely

Before renaming, modifying, or deleting a data layout:

  1. Identify apps that reference the layout in adk.config.json.

  2. Update the FileMaker layout and project configuration together.

  3. Regenerate TypeScript types with Typegen.

  4. Resolve any type or validation errors in the app.

  5. Test record queries, updates, portals, and value lists against the updated layout.

FileMaker Pro does not indicate when an external project references a layout. Treat data layouts as software dependencies during database maintenance.