In general, committing data in ODBC data sources works the same as committing FileMaker data. For example, FileMaker saves changes to external data when you exit a field or move to another record. For more information, see Committing data in records. However, because external data is controlled by different software and can be used interactively by users working outside of FileMaker software, there are certain actions you can take to assure you have the latest record data and table schema.
1. Open the file with the link to the external data source.
2. In Browse mode, choose Records menu > Refresh Window.
Current data, including data entered by users outside of FileMaker, appears. You can also flush the internal cache with the Refresh Window script step.
For ODBC tables, FileMaker uses "optimistic locking" to control data entry. FileMaker does not automatically refresh data when you begin entering data in an external record or when you do a Find on ODBC data.
1. Choose File menu > Manage > Database.
2. In the Manage Database dialog box, click the Fields tab.
3. Choose the table you want to work with from the Table list.
FileMaker displays fields from the ODBC table. The field names appear in italics.
4. Select an external field in the list, then click Sync.
FileMaker updates the schema between the ODBC source and the "shadow" table. You have not changed the field schema in the data source, only updated the FileMaker table schema for any new or missing fields. For example, if you delete a field from an ODBC table in the relationships graph, when you click Sync again, the field from the external data source will reappear.
•After you synchronize, any field options you set in FileMaker Pro Advanced might be reset if the ODBC data source doesn’t force that option. For example, if you selected the Not empty validation option, after synchronizing, you might have to reset that option.
•The following errors may appear. For more troubleshooting information, visit the FileMaker Knowledge Base.
This error message | Displays when |
<Table Missing> | A table is renamed or removed from an external database |
<Field Missing> | A column is renamed or removed from the external database table |
<Data Source Missing> | •A data source or a database is renamed or removed •The connection fails; the appropriate error message for connection failure is also displayed |
<Primary key missing> | FileMaker cannot identify a unique key for an ODBC table or view; this error is displayed in the relationships graph and in field objects |