Gismo12 Posted November 12, 2018 Posted November 12, 2018 Hi All, I have requested this before but have not come to a solution yet. I have a container with a PDF insert. when selected, the user must be able to read the PDF attachment At this stage the PDF is not opening. It displays the PDF file name with the PDF logo only If I insert a picture it does display
MonkeybreadSoftware Posted November 12, 2018 Posted November 12, 2018 FileMaker can only show a preview if it has a preview image or you make it an interactive container. In our MBS FileMaker Plugin, we do have DynaPDF functions (cross platform) and PDFKit functions (Mac/iOS) to make such a preview image. See DynaPDF.GeneratePreview function. see FileMaker and PDF Containers
Gismo12 Posted November 13, 2018 Author Posted November 13, 2018 Hi, I looked at all the references your provided but still can not get it to work. I have quite a few layouts with either photos or PDF attachments. at this stage all attachments are imported into File Maker tables and not linked to external files. the commands seems to require a path and a serial number which I do not have. also not sure where to add the command. I placed it in the script opening the PDF display layout, just before the goto layout script please could you assist?
Gismo12 Posted November 13, 2018 Author Posted November 13, 2018 (edited) ok I have discovered a different method but from Line one, I get a operator expected error. Set Variable [$path; Value:Get (TemporaryPath ) ] Save Records as PDF [Restore, No dialog; "$path"; Records being browsed] Go to Field [select/perform; myContainerField] Insert PDF ["$path"] Go to Field [select/perform] What I want to accomplish is: open folder select the PDF file insert the PDF file to container I think I am almost there with below code Edited November 13, 2018 by Gismo12
JerrySalem Posted November 13, 2018 Posted November 13, 2018 4 hours ago, Gismo12 said: ok I have discovered a different method but from Line one, I get a operator expected error. Set Variable [$path; Value:Get (TemporaryPath ) ] Save Records as PDF [Restore, No dialog; "$path"; Records being browsed] Go to Field [select/perform; myContainerField] Insert PDF ["$path"] Go to Field [select/perform] What I want to accomplish is: open folder select the PDF file insert the PDF file to container I think I am almost there with below code the $path variable should be; get(temporaryPath) & "Name.PDF" you need to specify the name of the file (it can be a calculation too) Try that. Jerry
Gismo12 Posted November 13, 2018 Author Posted November 13, 2018 I can not specify a file name, i want to be able to open the location, select the specific file, then link to the container is that possible? I came so far as to select the file but then it actually opens the PDF file instead of directing me to link the file
Recommended Posts