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.

Importing Excel Tables

Featured Replies

Hi, I have been using FMP 7 for a little under a year and Applescript a little longer, and I'm trying to do something that seems like it should be really simple in FMP 7, even without Applescript. I want to import an existing Excel table into an existing FMP database as a new table with all of the field names automatically created from the Excel table's header row. I can get the Excel table to open in a NEW FMP database by simply drag and dropping the excel table onto FMP, but then I see no way of importing this table into the other existing FMP database without manually creating the table and all the field names to import into.

So.... now I am trying to create an Applescript to grab the field names from the header row of the excel table, and create a new table in an open FMP database, with new fields being created for each column. My script is as follows:

 tell application"FileMaker Pro"

tell front document 

tell last table

create new field

end tell

end tell

end tell

And when I run this it gives me an error "FileMaker Pro got an error: Event not handled." on the "create new field" line, even if I try it with "create new field with properties {name:"A new field"}"

So any ideas on how I can do this, with or without a script, easily? It should be simple and something that others have done in the past, no?

Thanks.

  • 4 weeks later...
  • Newbies

field definitions appear to be read only - you can't create fields this way.

How does other applications, such as FMrobot perform this task? Is it possible via the menu items?

How does other applications, such as FMrobot perform this task? Is it possible via the menu items?

I'm just starting to check out FMRobot, so I'm no expert. However, FMRobot requires a DDR which can only be made within FileMaker Developer Edition AFAIK. I also have been trying to figure out FileMaker Migrator, but I'm lost with it so far.

I don't think that there would be a market for these utilities if it were possible to just open an Excel file and create the fields. OCICBW.

HTH

Lee

wink.gif

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.