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

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

Recommended Posts

Posted

Hi,

 

I'm confused, please help.  What I'm trying to accomplish here is to provide a global container field where I would place a pdf via Filemaker PRO so user can navigate via IWP, click on the container fields and if I'm understanding Filemaker correctly ... Filemaker, via IWP, either allows the user to click on the container image or provides a link for the user to click that will download the .pdf to the users desktop.

 

I can select "Insert" from the File Pull Down Menu and insert any .pdf into my global container filed, however when I try to script my records being browsed to be a .pdf and place that pdf in my container fields it doesn't make it, global container field empty?? No pdf file. No errors either ?? huh???

 

Anyway, any assistance here would be grateful.

 

 

Set Error Capture [ On ]
Go to Field [ Main Database::Packing List Container ]

[ Select/perform ]
Set Variable [ $Set Temp Path; Value:"file:" & Get ( TemporaryPath ) & Main Database::Packing List Container&".pdf" ]

Save Records as PDF [ File Name: “$Set Temp Path”; Records being browsed ]
[
Document - Compatibility: Acrobat 7 and later ]
[
Pages - Number Pages From: 1; Include: All pages ]
[
Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ]

[ Restore; No dialog ] Exit Script [ ] 

Posted

You can insert into a global field with FM Pro, however when navigating to your IWP page the global container will be empty.  You'll have to have container fields specifically for your records being browsed that is not global; let say a container table and navigate your user to the container field to click on the download link.

 

 

  Set Variable [$FilePath ; "file:" & Get ( TemporaryPath ) & "FileName.pdf"]

  Got to Layout ["yourlayout"] ( or OMIT if your already on the layout )

  Save Record as PDF [No dialog; "$FilePath", records being browsed]

  #PDF has been created, now insert into container

  Go to Layout ["ContainerLayout"] 

  Insert File [TABLE::ContainerField; "$FilePath"] 

This topic is 4208 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.