Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Opening PDF files in a Container Field

Featured Replies

I have a container field that holds PDF files of cabinet drawings.

To conserve space, these are stored as only a reference to the file.

To open the file the user has to double click onto the PDF icon in the container field.

Is there a way to open the PDF file via a scripted button or a calculation rather than clicking onto the file?

Thanks in advance!

Jarvis

You could launch a URL by script with the URL referring to the file path to the PDF.

  • Author

Transpower,

Perhaps I was not real clear about what I am trying to accomplish.

I am not trying to locate PDF that are living at some URL.

The PDF files that I want to launch are already stored in a container field.

To activate them right now you put the cursor over the field then double click.

What I would like to do is find a way to have the PDF open without having to do the double click.

If I could have this be a scripted event , life would be good.

Does this seem doable?

Jarvis

  • Newbies

I have been checking into this for storing resumes in a database in Word, PDF, and other formats.

The solution is to 1) store a reference to a file (which you are already doing), and 2) use the following script step: Go to Field [select/perform; my_container_field]

If you embed the file, this doesn't work. In fact, I can't figure out much of any real advantage to embedding the files since all you can do with them is import and export them. There is no way to open them, edit them, save them, attach them to e-mails, etc, etc using the built-in scripting. If I'm wrong, please let me know!

-David

I think you are right to some extent. There is no way to open them without a dialog which asks you where to save them; and visa versa, no way to reinsert them without a dialog to navigate to and choose them.

On a Mac both of these dialogs can be bypassed, and the processes handled with AppleScript. On a PC they can be handled with a plug-in, such as Troi File. The processes are similar, basically renaming the exported file, which is at a known accessible location. I imagine you could use command line on either platform; but if you ask the question, then that's not likely one of your hobbies :-/

If you are handling the location of the file after it is exported, you cannot then move it around and expect an automated "re-insert" to work. This would be more used for files you want to keep inside FileMaker, just edit occasionally outside.

It could be exported to a "temporary items" folder, so the exported file would exist to be worked on and re-inserted, but would then be deleted without user intervention. The changes would be lost however if the user did not re-insert it, which would require a FileMaker script and button (unless you AppleScripted an auto-save and re-insert at intervals, yikes :-).

It would be wonderful to be able to script the File References of FileMaker, especially for these import and export steps; though I can understand if they are wary to open that up. And there are the cross-platform issues. But there are good tools on either platform to handle files.

The advantage to embedding files is organization, and a portable, unbreakable tie to the relevant FileMaker records.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.