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.

Making field reference to insert picture

Featured Replies

  • Newbies

I am wondering how to use a file reference that is in another field (File Path) to grab and insert a picture from a folder on my desktop into a container field (Image). Suggestions? Any are greatly appreciated!

Thanks,

-Teo

When asking about container fields and image files it's important for you to say whether you really want to "embed" the image entirely, so that the actual binary data is permanently in the FileMaker container field (which is an action, scripted), or only "display" a picture file, which is only referenced from FileMaker to the file's location (which must remain fixed). These are 2 different things. The latter is possible via a calculation.

From what you say above, using a file path in a text field to "grab and insert a picture", the answer would have to be "No, not unless you use AppleScript"; unless you want to manually go find the file, which I doubt.

If you mean, "display a fixed location picture file" the answer is "Yes, but what syntax is the file path? Mac (with colons)? FileMaker (with slashes)? Unix? Is it a full path? In short, what does it look like?

There are further considerations if the file is referenced, but you're in a networked situation.

  • Author
  • Newbies

Thanks for your response Fenton. My intentions were for the latter option of "displaying a fixed location picture file". The syntax of the file path would be styled as such:

file://Macintosh HD/users/home/Desktop/image_folder/image.jpg

Thanks again,

-Teo

You just need the calculation to Substitute a little bit, result Container:

Substitute ( filePath; "file://"; "imagemac:/" )

ImageAbsolute.zip

  • Author
  • Newbies

That did the trick, thanks Fenton!

-Teo

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.