reference placed in container field (which was not checked in setup of the interactive container field). No pdf file placed in the container field of the record.
Insert PDF requires that the target container field be present on the current layout and be configured for Interactive content.
Drag and drop does not use Insert PDF to put the file in the container which is why you clerk does not encounter this issue.
Here are the Notes entries from the Filemaker Help entry on Insert PDF:Notes•If there is no active container field on the layout where the script is being performed, Insert PDF returns an error code that can be captured with the Get(LastError) function.•This script step works only with interactive containers. For more information, see Specifying formats for container fields.
Phil ... thx for your post,
In this case, I think there is a gap in my script logic.
My script, at the time of attemped insert, is on the detailed layout with this container field (The field was defined as interactive via the layout inspector data tab).
The Insert PDF step does not have a target field associated with it. Do I need to create a script step that somehow directs the Insert PDF step to put the PDF file into the container field?
For Insert PDF to work, you need to make sure that your interactive container field has the focus before you insert the PDF. Go to Field or Go to Object (if the field has been given an object name) can be used to put the focus into the correct field before Insert PDF is executed.
Phil -- Had to set the file as permanent file on device, but with your tip it working.