Timeline for How to download SearchDisplay results as a PDF via API4
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 9, 2023 at 20:11 | comment | added | Justin657 | Well, upgrading to 5.67 has not fixed the issue. Still investigating... | |
Nov 8, 2023 at 18:01 | comment | added | Justin657 | No worries, I'll bring this up to 5.67 and see where we go from there. | |
Nov 8, 2023 at 17:53 | comment | added | Demerit | Maybe it's a version difference. I admit I didn't test with 5.65 (using 5.69). | |
Nov 8, 2023 at 16:45 | comment | added | Justin657 | Here's the call: cv api4 --user=test_cms_admin SearchDisplay.download display=Test_Table_1 savedSearch=Test format=pdf > reporttest.pdf | |
Nov 8, 2023 at 16:41 | comment | added | Justin657 | Still gets cut off even with a simple query displaying only the Contact ID and Display Name for Individuals, again about 10 records in the results. This time it chokes on display of the table header. PDF is ok when I manually download it from Actions menu. | |
Nov 8, 2023 at 1:35 | comment | added | Demerit | It works ok for me so maybe is something specific about your search display or it chokes on some unusual data. Try it with a super simple search and display. | |
Nov 7, 2023 at 20:37 | comment | added | Justin657 | Also just to clarify, when I manually download the results as a PDF via the SearchDisplay Action menu, the generated PDF file is good, showing all the results. | |
Nov 7, 2023 at 20:30 | comment | added | Justin657 | Thanks, that worked. Now I can generate the csv and json array outputs with all the query results. However the PDF output gets cut off on the first line of results. It prints the table header and then only part of the first line of data. As if the PDF generation process gets stuck somehow. It doesn't run long or time out. Plus for my testing I've limited it to 10 lines of query results. Weird. No errors in the Civi debug logs either. | |
Nov 7, 2023 at 20:23 | vote | accept | Justin657 | ||
Nov 7, 2023 at 17:54 | history | answered | Pradeep Nayak | CC BY-SA 4.0 |