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
printRecord(this, "FormName")
end
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.
Thanks
7 replies
-
Try it like this:
–––
for i in select TableName do
printRecord(i, "FormName")
end
–––
Birger
-
This still only shows one record - is there something else I'm missing?
Thanks
-
Hi,
It should print you out one PDF for each record of the table.
How many PDF's do you get?
Best, Jörg
-
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.
Thanks
-
bump. Has anyone figured this out yet?
-
If you make a child table of the table you want to print. Go in the parent table to the printeditor to print all the records.
-
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")
end endThe table name is PROOF not DESIGN. See attached pictures
Content aside
-
1
Likes
- 2 yrs agoLast active
- 7Replies
- 2501Views
-
1
Following