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.

Wanting to import images, based upon a field's contents/name

Featured Replies

  • Newbies

Greetings...

I am attempting to build a database, that imports images based upon a relationship of a field name.

For example.. I am trying to take a field name "ImageNumber", and use it to refer to the import of an image named the same (with a .TIF file-extension.)

e.g: User clicks: "Click to import images" and the script might go through each record, determine the value of "ImageNumber" and use it to import a relative file named [imageNumber].TIF into a container filed on that record.

I have tried numerous ways to do this, and I am thinking I am going to have to script it, but I am unfamiliar with the syntax or protocol in which to do this. Has anyone had the similar need, and solved it?

Any assistance would be most welcome!

Thanks!

You can script it or you can use a calculated path. Something like:

"filemac:/volumeName/directoryName/" & ImageNumber & ".TIF"

  • Author
  • Newbies

Thanks Tom...

I guess I am looking to script this and automate it for all records in the database (Usually about 50-100)

I have tried about 37 times, and keep getting endless loops etc. I am an idiot I know, but, I think I am getting close.

Anyone else ever been able to automate this?

Thanks again Tom.

Chris

It's possible to use Set Field( image ; path ) where path can be either a field or a variable, and would look like what I described above.

It's also possible to do something like:

Set Variable( $path ; path )

Go to field( image )

Insert Picture( $path )

Note that Insert Picture doesn't work unless the field is active. Also, I believe the first method would always be a reference, whereas the second gives you the option to use a reference or not. (And Set Field doesn't appear to bring in other information such as file size.)

I don't know why you're getting stuck in a loop. That's another issue. Be sure you have the "exit after last" checkbox checked (why isn't that the default!?).

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.