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

Extracting text from container calc.

Featured Replies

  • Newbies

Hello all,

I have a database which stores information about buildings and it has container fields storing links to drawing files. The client likes it this way so they can click on the field to pull the file from the server. I need to be able to add a link to the file on a website I am creating for them and therefore I need to extract just the file path with a "file://" prefix for the link. when I calculate getText(container_Field_Name), filemaker returns an extra part ("file:filename filemac:/Macintosh HD/Users/filepath/filename). How can I retrieve just the filepath and filename parts of this in a calculation field?

Thanks in advance

There are a couple of ways to do this using Text functions.

- You could use Substitute to replace the slashes with paragraphs, then use ValueCount and GetValue to get the filepath and filename values.

- You could use Length to get the character count, then use Position to find the second slash from the end (use a negative number to count backwards), and Middle to pull out the text.

If you like to figure things out yourself, give it a try, if not let me know and I'll give you a calculation.

Edited by Guest
corrected link

Hi Tom,

Your link didn't work for me.

Hi [color:red]FMStudioNewb, and Welcome to the forum.

This question comes up from time to time, and if you were to do a search for [color:blue]+file +referemce you will find a lot of the threads. See if this one is what you are looking for. Link

HTH

Lee

Thanks, Lee, the link is corrected now, it points to the relevant FileMaker.com/help section.

The link I had posted was what I use for my own quick help. For anyone interested, I find this very useful:

On a Mac control-click (right click) on your FileMaker application, and choose Show package contents

- From there go to / Contents / Resources / English.lproj / FileMaker Pro Help /

- Open index.html

Go to script steps, functions, error codes, and bookmark them for instant access.

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.