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.

Scripting import from .fmp12 using update fields and matching names ?

Featured Replies

Hello!

I'm trying to properly script importing a daily database into a master database.

Everything in the script I have currently works just fine, except for the import step.

I want to:

arrange by matching names
update matching records in found set
add remaining data as new records
and I want to set my matching field to the UUID in my database.
dialog off

 

I've found that when importing via script, filemaker doesn't really let you do "matching names" and set the matching field.

I've resorted to setting the script to use Last Order and manually importing a sample file before I do a batch of imports via script. Kind of a pain, and not a solid solution for me to share with my coworkers.

ANY help is appreciated!

  • Newbies

I share your pain on this issue.  In my case the best I have managed is to open a test file, match up the fields as required (using Last Order or Matching Names as appropriate) and then switching the dropdown to "Custom Order" before saving to the script.  This works for me as the fields in my imported file are always in the same order - except that one of the fields in the imported file is optional but I have that as the last field so it doesn't mess up the positions of the previous fields if it is not included.

  • Author
5 hours ago, Tim Saunders said:

I share your pain on this issue.  In my case the best I have managed is to open a test file, match up the fields as required (using Last Order or Matching Names as appropriate) and then switching the dropdown to "Custom Order" before saving to the script.  This works for me as the fields in my imported file are always in the same order - except that one of the fields in the imported file is optional but I have that as the last field so it doesn't mess up the positions of the previous fields if it is not included.

I've essentially done the same thing as a workaround. But I'm trying to share this solution with colleagues who are working on their own projects, which may require them to add, remove, or change various fields.

If there was some way to simply keep it as "matching names" and "matching field" it would be simple and would always work regardless of what they changed.

Not sure if I'm missing something, or if scripting imports is just super flawed...

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.