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.

Import pictures from a folder into a specific table/field

Featured Replies

Hi All,

I have build a database for my medical practice.

The database has a main table called patients with all the patient details.

I have another table called photos, linked to the patients database through patientID.

I have a layout, drawing data from the patients table, with a portal drawing data from the photos table.

I want to place a button on the layout to import several pictures into the photos table at once.

I tried using a script with the "import records" command, to import from a folder, but FMP does not know where to import the data to....

I tried using the "Go to field" command to go to the container field of the photos table, but this does not seem to work.

I am sure I am missing something very simple, but I cannot figure this out.

Any help would be appreciated

Run the import step from the photos table. However the issue remains to identify which patient the photos belong to. It simplifies things enormously if all the imported photos belong to the same patient, in which case the script would look something like this (in pseudo code):

Start on the Patients TO:

remember the patient id

go to photo layout

import records

set the patient id in each imported record with the patient id

return to the patient layout.

In practice this would probably be done in a separate window so the current window isn't disturbed.

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.