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 the file path and name of a container field item

Featured Replies

  • Newbies

Hi everyone.

I'm using the new Filemaker Pro 12 to build a product database off-line (in the office) and then exporting the date to a remote server for our on-line e-commerce system.

In the office, without internet, we want to use the Container field to store and manage images and other file types with the External container feature. When syncing the filemaker database with our website host service, we'll just upload the images in the external folder onto the server (with FTP). However I want to try and generate a file name and path with a calculation in Filemaker which will then be used as a URL in the website server.

My table would then have the following two fileds:

- Files (Container type with Data stored externally)

- URL (Calculation that would generate a url using the filename for the file in the container field)

I looked at the GET functions, but couldn't see something I could use so any help would realy be appreciated.

Thanks in advance.

  • 4 weeks later...
  • Newbies

Here's a partial answer: to get the actual name of a contain field item, you need to use the "GetLayoutObjectAttribute" function.

This function requires that the container field be given an object name (using View->Object Info ). Then you can use

GetLayoutObjectAttribute("OBJECT_NAME_HERE";"content")

...where "OBJECT_NAME_HERE" is what you called the container field. "content" tells the function you want the name of the object in the container field. (See FMP's help function for other parameters you can use.).

Please note that the results of this calculation should not be stored--recalculate it as necessary. With my version of FMP (10 advanced), if the result is stored, I get nothing. But if it's set to recalculate as necessary, the field name appears.

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.