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.

Getting path from Container

Featured Replies

Hello!

Im trying to get the path frpm a container field into a field. I am trying with a calculation field and Im doing GetAsText(Picture) but the only thing it is returning are a ?, does anyone have any clue why this doesent work?

Regards Jocke

I tried same calculation on win xp pro and its worked.

I believe it only works with local images inserted as reference. With remote images I believe it returns just the name. With embedded images it may return the "?", as it has no idea.

  • Author

The only thing I do is to mark the container and then go up under the menu Insert and then choose picture, the picture I select is on my computer. Anyone has an idea?

Jokez

Look at the checkbox on the lower left, "Store only a reference to the file." If it is not checked then you are embedding the picture itself into the FileMaker container field. Once you do that there is no longer ANY connection to the file. And FileMaker cannot use the GetAsText() function, because it requires the file path.

You can however use Length() to see the approximate size, in bytes. You could also another method, such as Import Folder, and import the File Path into a field. Or use AppleScript to get the file path. But both of these must happen when the picture is 1st inserted, because after that there is no connection to the original file.

It depends on what your situation is, stand-alone on one machine? network multi-user? which is the best overall method to add pictures. There's several methods:

1. Embed picture in FileMaker

2. Reference picture

3. Reference with calculated path

And there's more than one way to do each of those. Import Folder? Insert Picture? Insert Picture, with AppleScript enhancements? Troi File plug-in? Other?

  • Author

Thanx!! That worked like a charm!!!

// Jocke

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.