Brian Dunning's FileMaker Custom Functions

GeneratePreview ( ContainerField )

Generate an interactive preview for container field without requiring user interaction

  Be the first to rate this function Log in to vote

Justin Smith   Justin Smith - Show more from this author
https://www.airchecklab.com

Share on Facebook Share on Twitter

  Sample input:
Container field
  Sample output:
Interactive container field with preview

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

When inserting a file into a container field via script step, we do not get a preview, and the resulting container is not interactive.

This method generates a preview and gets us an interactive container field.

 

Comments

Emmeuno   Emmeuno
Feb 18, 2022
Where paste custom function, in web viewer? Please show example.
 
Justin Smith   Justin Smith
Feb 18, 2022
When inserting a PDF into a container field via script step, without user interaction, FM would only give an icon instead of making the container interactive.

$PDF is a path to the PDF on disk that I need:

Insert File [ Target: TABLE::Container_Field ; “$PDF” ]
Commit Records/Requests [ With dialog: Off ]
Set Field [ TABLE::Container_Field ; GeneratePreview ( TABLE::Container_Field ) ]
 
Justin Smith   Justin Smith
Feb 18, 2022
@Emmeuno, to use the custom function, paste it into your File » Manage » Custom Functions dialog
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: