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

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

Recommended Posts

Posted

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

 

Posted

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? 

image.png.fe26119cfcaf2e1fd0a41cf06dee3f3d.png

Posted (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

image.png.b4e2acff6565bde024a9cc71a83b356e.png

Edited by Gismo12
Posted
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

image.png.b4e2acff6565bde024a9cc71a83b356e.png

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

Posted

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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.