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

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

Recommended Posts

Posted

How do I get the path of a file that is stored 'as reference only' in a container field?

Posted

This only returns the text name of the file. What I need is the path of the file:

/Volumes/Media1/Setups/MyFile.txt

Posted

This only returns the text name of the file.

​No, it returns (1) the file name, (2) the absolute path to the file and (3) the relative path to the file, in a return-separated list. So =

GetValue( GetAsText ( ContainerField ) ; 2 )

will return the absolute path, for example.

Posted (edited)

And you're asking this because ...?

EDIT: I meant browse, not search, especially since there is an entire function category "Container".

GetContainerAttribute() with attribute "externalFiles" returns the path of the referenced file, even if that word wasn't used by the author.

Edited by eos
Posted

Not sure this is not working for me. This returns a blank field. If I set the value to 1, I receive just the file name, but when I set it to 2 or 3 the calc returns blank.

GetValue( GetAsText ( ContainerField ) ; 2 )
Posted

 If I set the value to 1, I receive just the file name, but when I set it to 2 or 3 the calc returns blank.

​That's consistent with a file embedded in the container field, not stored 'as reference only'.

Posted

Makes sense, but when I click insert file I click on the checkbox to 'store as reference only'  Is there something that I need to do in the field definition of the container itself? Not sure what to try next.

 

Posted

Got it to work! Just started with a new container field and all is well. Thanks so much for you help!

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