Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6537 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi all. I'm new in here. I'm running FM Pro 8.5. I was hoping if you guys could assist me. How do I insert a text link (the full location of the file) rather than have it displayed just as a filename in the container? Can it be done in a Text Field? The 'Insert File' script does not do the job.

Another question, when you have Inserted a File, How do I remove the inserted file only without having to delete the entire record?

Posted

You can get the full path of a file that is stored as a reference in the container field. Those that has been actually stored in the field do not have a path because it is embedded.

Use a GetAsText(YourContainer) to get the filename if stored, or return both filename and full path if referenced only.

To delete the file, just go to the container field and then press delete or use a "clear" step.

  • Newbies
Posted

Thanks mr_vodka. It's a bit unclear. Where do I use the GetAsText command. Do I run the script in the Container Field or in the Insert File Field. I created an Insert File command which when I click, will place the file (whether its embedded or referenced) into a Container field. Instead of just the filename, I'm hoping to get the full path displayed. But I'm not sure where to place the GetAsText command to display the full path. Hope you can help. Thanks

Posted

Create a calculation field with text result.

  • Newbies
Posted

Fantastic. It did the job! The file name gets displayed as

file:XX

filewin:XX

Is there a way that I can make it to display just the filewin:XX as I've got a separate field that gives the name of the file. Thanks.

Posted

RightValues ( GetAsText ( YourContainer ) ; 1 )

  • Newbies
Posted

Thanks Mr_Vodka. You've been a big help. If I have any other problems, would it be ok if I was to just send a private message. At least it won't clog up the forum with newbie questions. Thank you once again.

Faz

This topic is 6537 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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