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 an import

Featured Replies

I'd like to build a script to import data from one database to another with multiple tables, but identical structures.

I've got most of it written, but I need the script to ask the user for the file name and/or path by browsing for it, and then have the script remember that path so it can perform the import for each table.

If the filename and path were certain I'd hardcode that info in the script, but the filename and path won't be the same for every enduser.

Have you checked out the Get(FilePath) function, also read the help section for "Creating file paths"

  • Author

Yes, I've tried the Get(FilePath) function, but it only returns the open FMP database. I need to store the path of a database that the user chooses in a dialog box for import, so the script can perform the import on all tables using the same path. In other words, I want the user to choose the import file once and then have the import script take over from there.

I need a way to bring up a dialog that asks the user to browse for a file and then store that path once the user has chosen a file.

----

I've also looked into the Troi plugin which will do what I want, but I'm developing a runtime solution that I'm going to distribute free, so I can't justify the $299.

Edited by Guest

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.