Button to print all records in a table (to pdf)
I have a table with 2 subtables, and I would like to have a button so the entire table is printed (on an iPad so this would be a pdf.)
I've tried a for loop as suggested in this thread:
but it will only show one record.
My button code is:
for i in select TableName do
This will give me the first record with the correct print form, but just the first record as a pdf.
I don't need a filter just all the records.
I get one PDF. I don't actually want to print them to a printer, but I would like to have all the records in a PDF like when using the "All" option.
I get the first record in a PDF with the correct form, but there is just an Export icon that only saves the one record and not even the "All" option.
The code by Jörg works, the button need to be at the parent table and make sure you are referring to the table name and not the nick name. In my example the code for the button is :
for i in select PROOF do. for i in select TableName do
printRecord(i, "PRODUCTION") printRecord(i, "FormName")
The table name is PROOF not DESIGN. See attached pictures