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.

Temporary export/reimport of pdf while in WebDirect

Featured Replies

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

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.

 

 

  • Author

"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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.