Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copy records from FM to MySQL

Featured Replies

Hi,

i have a Filemaker Database with a TableA-fm. This Filemaker Database is hosted on an FMS14-Server, which is configured to use the MySQL-Odbc Driver to connect to an MySQL Server. The Mysql have the same Database and Table structure as the FM have. (TableA-mysql)

now i want to do the following:
Create a layout in FM on TableA-fm which let me enter Data (via Fields) to TableA-fm and simultaneously the same data to TableA-mysql on the MySQL Server. So i would like to have the same records of data in the FM-Table and the MySQL-Table.

Any ideas how to do that automatically, or sync TableA-fm to TableA-mysql

  • Author

Okay, i read about it.

but is it possible to write in two tables with one field object?
For example: Field "Name" writes Data in TableA-fm and TableA-mysql.

you treat the ess table occurrence/fields and any layouts that leverage them as if they were FileMaker native objects. So ask yourself could i do this with native FM objects? if the answer is yes then your answer is probably yes.

To your point.. "For example: Field "Name" writes Data in TableA-fm and TableA-mysql"....why would you want to duplicate data.. just write to TableA-mysql

Edited by Kris M

  • Author

i dont know if a field object can write into two different tables..

maybe i create an field for the mysql-table (TableA-mysql) and use a lookup-field in the Filemaker Table TableA-fm?

Why?

If you use the ESS functions in FileMaker, you are effectively writing to TableA-mysql and working on it through the FileMaker interface (same as any field on a layout) - so the data is written to one place, but looks like it is FileMaker data...

  • Author

yes I understand how to use ess and how to work with a table in fm.

but image I have one column in both table (TableA-fm and TableA-mysql) called 'forename'. I place a Field object on a Layout, how can I say that the input of this forename-field should be written in both tables? 

if this is not possible I have to add two field objects.. one for every table. forename-mysql and forename-fm, so the data must be entered twice..

The data wouldn't be written in two tables - you would place the TableA-mysql::forename on the layout and just data enter into that.

Looks and acts like FileMaker, but is actually the mysql field. 

So, back to my question - why would you have a duplicate field in FileMaker ?

  • 3 weeks later...

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.