ddinisco Posted May 15, 2015 Share Posted May 15, 2015 How do I get the path of a file that is stored 'as reference only' in a container field? Link to comment Share on other sites More sharing options...
comment Posted May 15, 2015 Share Posted May 15, 2015 See:http://www.filemaker.com/help/14/fmp/en/html/func_ref1.32.239.html#1075526 Link to comment Share on other sites More sharing options...
ddinisco Posted May 15, 2015 Author Share Posted May 15, 2015 This only returns the text name of the file. What I need is the path of the file: /Volumes/Media1/Setups/MyFile.txt Link to comment Share on other sites More sharing options...
comment Posted May 15, 2015 Share Posted May 15, 2015 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. Link to comment Share on other sites More sharing options...
eos Posted May 15, 2015 Share Posted May 15, 2015 (edited) 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, 2015 by eos Link to comment Share on other sites More sharing options...
comment Posted May 15, 2015 Share Posted May 15, 2015 (edited) 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, 2015 by comment Link to comment Share on other sites More sharing options...
eos Posted May 15, 2015 Share Posted May 15, 2015 (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 May 15, 2015 by eos Link to comment Share on other sites More sharing options...
ddinisco Posted May 15, 2015 Author Share Posted May 15, 2015 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 ) Link to comment Share on other sites More sharing options...
comment Posted May 15, 2015 Share Posted May 15, 2015 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'. Link to comment Share on other sites More sharing options...
ddinisco Posted May 15, 2015 Author Share Posted May 15, 2015 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. Link to comment Share on other sites More sharing options...
ddinisco Posted May 15, 2015 Author Share Posted May 15, 2015 Got it to work! Just started with a new container field and all is well. Thanks so much for you help! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 3271 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 accountSign in
Already have an account? Sign in here.
Sign In Now