Are you trying to print the PDF or what you see in the container field? Are your PDFs single page PDFs? Can you post your the script you are trying to use?
You are going to need to open the PDF before it can be printed. This can be done by using the native controls available when you hover over the container field or via a script that exports the PDF. Here's a simple sample script to get you started:
Set Variable [$Path; "Get(TemporaryPath) & "MYPDF.pdf"]
Export Field Contents [MYTABLE::Container; "$Path"; Automatically open]
This will open the PDF. You might also be able to get it to print automatically with Send Event. Here's a help page on it:
They are multi-page PDFs. I go to a layout of the found set that shows the opened PDF in the interactive container. When I send that field to print, it only prints the first PDF page of the first record.
Go to Field [ Select/perform ;
Print [ Restore:gc-hp321 ; With dialog: On ]
The field contents (PDF) is already being exported into the larger view layout where it can be seen in its entirety (by scrolling if multi-page) for each record and from where I'm trying to print all the PDFs in the found set. Some records contain multi-page PDFs while others in the found set might only be single-page. It varies per record.
Your script is not printing the PDF. It is printing the layout the PaperworkItem field is on. Follow the directions JaymoJaymo gave you. You might also research using a PDF plugin to accomplish what you want. I don't use plugin so I'm not a good reference to recommend a plugin.
There is an export script in place that delivers from one layout to the layout from which I am trying to print the pdf's:
Set Variable [ $filename ; Value: GetContainerAttribute ( Paperwork::PaperworkItem; "filename") ]
Set Variable [ $filename ; Value: Get (DesktopPath ) & "/tempfile" & " " & Vendor Order::pk_OrderID_DISPLAY & "_" & Get ( RecordNumkber ) &.pdf" ]
Export Field Contents [ Paperwork::PaperworkItem ; "filename" ; Automatically open ]
The first step is not serving a purpose since your second step changes $filename. The Export Field Contents should say $filename, not filename. You need to print the PDF from the program that opens the PDF, not from a print step in a filemaker script. It usually is better to take a screen shot of the whole script and post it.
It sounds as if each pdf container is in a separate record. If so:
You will need to use a loop.
find the set of records which you want to print the pdf for.
go to record first
pause 1 second
go to next record(exit after last)
I am suggesting the pause. It may need it depending on which version of FMP you use.
addendum to my response (firstname.lastname@example.org)
so your layout where you will see the bid and all the details will be in the new Bid Header table.
your portal with the list of all the lineitems for that bid (bid id) will be based on the Bid table occurrence.
the lineitems will contain all records that were created for that bid (which come from the table occurrences from the right.