Go to Contents
Previous
Page
Next
Page
Contents > Accessing external data sources > Working with data sources > Updating data between FileMaker and ODBC data sources

Updating data between FileMaker and ODBC data sources
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.
To display the latest data from an ODBC data source:
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.
FileMaker uses "optimistic locking" to control data entry. When you perform a Find on ODBC data, FileMaker Pro dumps the internal cache and refreshes record data. You can also flush the internal cache with the Refresh Window script step. FileMaker does not automatically refresh data when you begin entering data in an external record.
To synchronize field schema between FileMaker and the ODBC data source:
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 in the relationships graph. You have not changed the field schema in the data source, only updated the relationships graph 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.
Note After you synchronize, any field options you set in FileMaker Pro 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.

Contents > Accessing external data sources > Working with data sources > Updating data between FileMaker and ODBC data sources
Previous
Page
Next
Page