- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 02:31 AM
Hay,
i need to create a UI Action to get a PDF inlcuding Field-Values from Task.
The PDF includes a corporate Design (Picture, Header....) and has to be updated with Values from the Task.
I read something about the opportunity to export the existing PDF to HTML an edit the HTML with the Field-Values.
There are a lot oft Questios with Hyperlinks as a Solution but is there now APi or Something like that?
Example:
var PDF = new ATTACHMANET(HTML, TYP, Format, location);
var PDF = new ATTACHMANET(<p>Hello World!</p>, PDF, A4, Table.Task)
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2019 11:54 PM
Hello,
I worked with the following link and it worked!
I had the customer create a PDF form for me. The form fields have certain designations which can be filled.
If the names of the form fields of the PDF form are unknown, they can be read out with a gs.info(fieldString);.
- first picture in the link
Otherwise, the PDF is attached to the CatalogItem (and thus to the attachment table). I activate the script to fill the PDF with a UI action (button in the header).
First a JSON object is created and then converted back to a string with JSON.Stringify.
The following compliance is important:
pdf.prefillPdf(jsonString, destinationTableSysId, attachmentSysId, destinationTableName, pdfName);
Info:
An empty PDF form is attached to the CatalogItem. I fill this form with field values from the task. The filled PDF is then displayed in the task.
Example of the prefillPdf() method:
pdf.prefillPdf(jsonString, destinationTableSysId, attachmentSysId, destinationTableName, pdfName);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2019 11:54 PM
Hello,
I worked with the following link and it worked!
I had the customer create a PDF form for me. The form fields have certain designations which can be filled.
If the names of the form fields of the PDF form are unknown, they can be read out with a gs.info(fieldString);.
- first picture in the link
Otherwise, the PDF is attached to the CatalogItem (and thus to the attachment table). I activate the script to fill the PDF with a UI action (button in the header).
First a JSON object is created and then converted back to a string with JSON.Stringify.
The following compliance is important:
pdf.prefillPdf(jsonString, destinationTableSysId, attachmentSysId, destinationTableName, pdfName);
Info:
An empty PDF form is attached to the CatalogItem. I fill this form with field values from the task. The filled PDF is then displayed in the task.
Example of the prefillPdf() method:
pdf.prefillPdf(jsonString, destinationTableSysId, attachmentSysId, destinationTableName, pdfName);