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.

Define a field to retrieve a file name

Featured Replies

Hi all:

It's been a while since I've actually developed in FM, I come back and they got this new fangled FM7 out...dang it was comfortable under my rock.

Anyways, I have 7 but I am still working in 6. I know I have used Troi file plugin to get the name of a file that I have specified. Well I want to be able to do that without the plugin. Is there a freeware plugin or some fancy external function that somebody has come up with? Say I insert a reference to a .jpeg in a container. Can I get the name of the actual image file by means of a calc field or script, and without the Troi plugin?

Thanks for your help!!!

Hey Kenneth, good to see you around!

You can retrieve a container's path by using GetAsText(container). If you only want the image's filename, try Substitute( RightValues( Substitute( GetAsText(containerfield); "/";

  • Author

Hey thanks, "ralphie." When did you make moderator? Nice to see ya.

However, I found the GetAsText function in 7, I don't think it exists in 6. I think I'll have to either break down and buy the multilicense for Troi File, or the server version of 7 crazy.gif

My bad. I misread your question in a hurry. No, I don't think there is a way to retrieve it in 6 without using a plugin. Sorry.

I think I became a moddy back around 2500 posts. It's all a foggy memory now. Scary though, ain't it? wink.gif

  • 3 weeks later...

kenneth2k1, did you find a work around for your problem?

I'm going through the same thing as I need to modify current container field's reference link to a new destination link in FM version 5 on a Windows OS.

I don't think FM5 has GetAsText and not sure if we going to bug down for Version 7. However, I looked at Troi plug-ins and couldn't find functions that does what I want as stated above, "...modify current container field's reference link to a new destination link"

Thanks in advnace for your help.

~rich

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.