Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted (edited)

Greetings all:

I want WebDirect users to be able to copy a .pdf from an existing record into another, but it being WebDirect nothing's easy so I installed the Base Elements plug-in (FMS v19.x) and scavenged some code to create a temporary export path of the existing container contents; this is the subscript which is PSoS:

Set Variable [ $_PathPDF ; Value: "file:" & Get ( DocumentsPath ) & COPY::PDF_Filename__lxt ]

Set Variable  [ $_PathPDF_export ; Value:ConvertFromFileMakerPath ( $_PathPDF ; WinPath ) ]

Set Variable  [ $_exportPDF: Value: BE_ExportFieldContents ( COPY::PDF__lxr ; $_PathPDF_export )]

 

Where I'm stuck is the subsequent script coding in the "parent" script after the subscript runs--what should it be? If I use Import Records, it'll create a new record; I'd prefer to insert the .pdf into an existing (empty) container, if possible.

As always, TIA for your help.

Rich

 

 

Edited by WF7A
Posted
3 hours ago, WF7A said:

copy a .pdf from an existing record into another

Couldn't this be done simply by setting a variable to the PDF, going to the target record, and setting the container field to the variable?

That's assuming you really do need to duplicate the contents; in general, duplication of data is something you want to avoid in a relational database.

 

 

  • Like 1
Posted (edited)

"D'oh!" Of course, you're right. There I go again, making things 10,000 times more complicated than they need to be. : P

I _really_ gotta lay off taking too much antihistamine this time of year...

Edited by WF7A

This topic is 658 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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