![]() |
ChatGPT 6/23/2025 |
Yes, you can customize the PDF filename in PHPRunner. To achieve this, you will need to use the
This code will generate a PDF with a filename that includes the username and the record ID, making each filename unique. If you need further customization or run into any issues, you might want to consult the PHPRunner documentation or reach out to their support for more specific guidance. |
![]() |
Tandy author 6/23/2025 |
Thank you ChatGPT. Sorry that is not working for me.. It still has the file.pdf when exporting it.. |
![]() |
Tandy author 6/23/2025 |
I have change the name as it says in the documents. Mine is called TripSheet but I can not figure out how to add the file stuff in that name. like username_TripSheet_tripnumber.pdf was just wondering if there is a code like %username% to put in to auto pull the informatin from the so call TripSheet itself.. Been looking through the manual and even done a search. I was wondering if it was even posible.. |
C
|
copper21 6/23/2025 |
![]() |
Tandy author 6/23/2025 |
Copper21 that is to upload to the server. I am trying to take a PDF from the server but have it as the files number. See the problem I am having. Say I have 5 different Trip Sheets. 5 different drivers. If I want a PDF each sheet they all say TripSheet.pdf on downloading them. |
![]() |
Sergey Kornilov admin 6/23/2025 |
I recommend checking PDF API where you can create PDF files and have a full control over PDF file name: |
![]() |
Tandy author 6/23/2025 |
Thanks Sergey. I was trying that as well. But still having the same problem. Trying to figure out what code to use. Here is what I have that is not right. ajax.addPDF( 'pdf', {}, function() { It gives me: Trying to find out on the manual where I can learn how I can make it say: The 64534 is the trip number for that trip sheet on the page |
C
|
cristi 6/23/2025 |
That's because you are mixing php variables with js code more precisely $record["trip_number"] is a php variable that you are using in js code. |
![]() |
Tandy author 6/23/2025 |
Thank you cristi, |
C
|
cristi 6/23/2025 |
Assuming you are using a custom button inserted in grid you use it like this in "client before": var filename=row.getFieldText("trip_number"); //asuming your field of interest is called trip_number. |
![]() |
Tandy author 6/23/2025 |
Thank you very much on trying but that code there came as an error as well: TypeError: row is null |