Saving records as pdfs in a separate files
I am new to this and have looked around for sometime before posting
I want to save my found records as pdfs in separate files with the reference number as the filename.
I have got to save as current record and save found records as one PDF but i want a pdf for each record
this is this script I am using for the current record
Set Variable [$Path ; Value: "file:" & myfolder/ & MyTable::MyField & ".PDF" ]
Save Records as PDF [ Restore ; No Dialog ; $Path ; Automatically Open ; Current Record ]
It saves the file correctly but only one, I want to do the same with all the records.
Thanks in advance for your help