FilePath #227
Unanswered
dadsoldaxe
asked this question in
Q&A
FilePath
#227
Replies: 2 comments 8 replies
-
There's an FAQ about this here : https://github.com/GoyaPtyLtd/BaseElements-Plugin/blob/master/docs/FAQ.md#notes-about-file-paths In short, use the built in conversion function ConvertFromFileMakerPath to convert the path from FMP to plugin ( and vice versa ) whenever you use a Get function path. Cheers, |
Beta Was this translation helpful? Give feedback.
8 replies
-
Many thanks for answering this, since this was not obvious and fixed my problem immediately. Not sure how I would've known to do this otherwise |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use the "BE_ExportFieldContents" function to export a file from a container field on the server, but I am not able to get it working. I have a feeling it is the file path that is causing an issue, and I have tried many options, but I am not really sure what to do.
If I use a "Save record at PDF" script step it is able to land in the correct directory. I read an article saying that plugins use a different path, but it did not have an example, so I am unsure how to modify the path to suit the plugin.
This is the path I am using for the "Save Record as PDF":
Get ( DocumentsPath ) & "OutPutPDF/filename.pdf
Here is an example of one of the iterations of the path I am using for the BE function:
"/Volumes" & Get ( DocumentsPath ) & "OutPutPDF/" & GetContainerAttribute ( TestingTable::PDF ; "filename" )
When I compare the output from the above with the terminal they are identical.
I am using FileMaker Pro on a Mac and the server is also a Mac running FileMaker server 21.0.1.51, on an M2 running MacOS 14.5.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions