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.

Path to file statement for GetFileAsContainer

Featured Replies

I have a container field and I am using the GetFileAsContainer function in a SetField statement to insert a PDF file. I keep getting an error every time I enter the path to the file. The statement looks like this: GetFileAsContainer( e:invoices$$filename)&".pdf"

I tried using quotes forward and back slashes, filewin: prefix...you name it and I still get a table not found error. What is the proper syntax for the path to file statement.

Help

Make sure that you have the whole path other than the field/variable name in quotes, and that the full file is within the GetFileAscontainer function parameters.

For example, you would set the calculation to be:


GetFileAsContainer( "c:/testfolder1/" & $$var1 & "logo.gif" )




or 




GetFileAsContainer( "c:/testfolder1/myfolder/" & $$filename)




if the "$$filename" variable includes the ".gif", ".pdf" or other extension.  If it does not, you can use 




GetFileAsContainer( "c:/testfolder1/myfolder/" & $$filename & ".pdf")

Also, please post all future ScriptMaster questions in the ScriptMaster forum of the 360Works section.

Edited by Guest

  • 2 months later...

is this command embedding your PDF inside your data file? Does anyone know how to use this command to Reference the PDF instead?

This can be done with the "Insert File" script step with the "store only a reference" box checked.

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.