Skip 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.

Images, etc. in Container fields

Featured Replies

I just managed to get something to work, which may be useful to someone, somewhere, someday :-)

Which is that the paths to files which show (or are otherwise referenced) in container fields behave much like html filepaths. You can not only go "down" from your current location, you can also go "up," by using the standard "../" (up 1 folder, directory).

You cannot, however, just use a full filepath. FileMaker is using "relative" paths to the files, from the current document.

I wanted to see if I could show images that were in an entirely different place on the hard drive. So I used a calculation with Get (FilePath) to count the level down to where I was, to get the "root" (Macintosh_HD in my case), adding an appropriate number of "../" (the filepath - 2), then added the rest of the file path (without the root). And it worked (eventually).

The path ends up looking like:

image:../../../../../../../../Users/fej/Documents/FileMaker/My_FM/aSmall_files/Pictures/Picturess7/images/Wounded_man.jpg

All it means is that you don't have to put the pictures "below" the FileMaker file.

One little "gotcha" I noticed in 7 is that Get (FileName) chops off the ".fp7" extension, but Get (FilePath) doesn't. Inconsistent. I guess it "looks better" without. It's fine, but I hope they don't change it back later, after we add ".fp7" where needed to our calculations.

Version: v7.x

Platform: Mac OS X Panther

I don't think that they will change that, as the Get (FileName) is specified for just the name of the file itself. The filepath is much less restrictive.

I wonder though, since the Get (FilePath) is there, what would be a better use for the Get (FileName)?

Version: Developer v7

Platform: Windows XP

  • Author

Well, one use it is not good for anymore is to remove the file name from the file path, to give you the folder (directory) the file is in, often done for AppleScripts. In 6 I could be certain that there was only 1 "Pictures.fp5" in the file path. "Pictures" however is in there several times.

So from now one we'll have specifically remove the file from the filepath, the last entry. It's no big deal.

It is somewhat inconsistent for two very similar functions to return data differently. I guess they did so to remove the extension from the visible name of the window.

I'm happy to report that in the Design functions, Get (FileName) works as the file name (duh).

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.