Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

This is driving me nuts. I've used it in so many solutions before...

Set Variable [$FilePath; Get(DesktopPath) & GetAsText(Container)]

Export Field Contents [Container; $FilePath]

I checked the variable, and here's what it contains: /Macintosh HD/Users/michael/Desktop/About Stacks.pdf, yet the script returns "Container Fields cannot be exported."

Does anyone have experience with this? Previous posts I found on the subject were not helpful...

Posted (edited)

It seems to me that getastext (container) would never work (as that gives you the path to a referenced container).

If you want to export a container, it must be embedded first, not referenced.

Then, $FilePath; Get (Desktoppath) & "filename.ext"

will work. How you define your filename is up to you.

Edited by Guest
Posted (edited)

Based on your recommendation, I've tried the following approaches:

- Calc field ("Cont_text", result as text) pointing to the container field used in file path variable, such as:

Set Variable [$FilePath; Get(DesktopPath) & Cont_text)]

Export Field Contents [Container; $FilePath]

- Creating a variable first ("$filename) with the file name retrieved from the container field, such as:

Set Variable [$FileName; Container]

Set Variable [$FilePath; Get(DesktopPath) & $FileName]

Export Field Contents [Container; $FilePath]

Neither of which worked. Same result, container can't be exported. Am I interpreting your suggestion correctly?

Thanks!!

Edited by Guest
Posted

Upload a simple example file to show us what you're trying to do.

Posted

Sometimes I'm BLIND... I was pointing to a container field in an other table. Of course that didn't work. A more refined error message would be nice though, FileMaker. :-)

Sorry to have bothered all of you about this!

This topic is 5253 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.