Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello Community,
I have a requirement where I need to generate a PDF file which will contain some of the attributes of Change Notice, I am not sure how exactly I should go about it. Requesting you to share some details to create a pdf in the code.
Thanks,
Sha
One way would be to create a report. I don't know if you are an admin but admins have the access to create them. It would be in the administrative Utilities area under Report Management.
Another possibility for you to look at is while on the Detail page of the CN go to the Actions menu at the top left and select View Summary Report. I am on 12.0.1.3 so I don't know if it's there in previous versions.
At the top of that page is a drop-down allowing you to create the report as a PDF. then you can download the PDF.
Hello @STEVEG ,
The expectation is that the report should be generated automatically at a specific point in the workflow and gets attached to the Attachments of the Change Notice, this should be done without any manual intervention. I want to generate this report through code so that I can add some additional information as required.
You can certainly do that. However, you would need to know how to create the workflow for that and also how to create the report.
We do something similar to what you want but we have a 3rd party partner we work with that does all our workflow, reports or anything else we need.
They created a report the gets the info we want and sends an email of that info once the workflow gets to a certain point.
STeve
We are searching for a third party partner to create some custom reports. Would you be able to share some contacts ?
The report Steve mentions is created via code you can see at :
Windchill]$ ll codebase/netmarkets/jsp/changeReports/ChangeNoticeSummaryReport.jsp
Windchill]$ ll codebase/JasperReports/Change\ Management/Change\ Notice\ Summary\ Report.jasper
But how to invoke this from a workflow: sorry, we will need to wait for the workflow experts to chip in here.
Hi @rleir
in the workflow you need to run own custom function that cares about the report generation.
In your own class you can do what you want.
It is very good question how to invoke the report from the code.
I have found that it is easier to create own pdf generator then use the OOTB one in my case.
PetrH
Hi @Sha11
For own PDF generation, you need to understand how to create PDF in Java. For example with Itext library. PTC use old version of Itext library (com.lowagie.text package)
You can find some tutorials how to create PDF in https://itextpdf.com/resources/api-documentation
PetrH