May 15, 201510 yr How do I get the path of a file that is stored 'as reference only' in a container field?
May 15, 201510 yr Author This only returns the text name of the file. What I need is the path of the file: /Volumes/Media1/Setups/MyFile.txt
May 15, 201510 yr 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.
May 15, 201510 yr Why not browse a bit in the documentation? http://www.filemaker.com/help/14/fmp/en/html/func_ref1.32.15.html#1063605 Edited May 15, 201510 yr by eos
May 15, 201510 yr Why not browse a bit in the documentation? http://www.filemaker.com/help/14/fmp/en/html/func_ref1.32.15.html#1063605 Does the word "path" appear anywhere on that page? Edited May 15, 201510 yr by comment
May 15, 201510 yr 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 May 15, 201510 yr by eos
May 15, 201510 yr Author 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 )
May 15, 201510 yr 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'.
May 15, 201510 yr Author 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.
May 15, 201510 yr Author Got it to work! Just started with a new container field and all is well. Thanks so much for you help!
Create an account or sign in to comment