Hi,
I would like to generate a PDF from ABSL coding as it is described in the Solution Library. However, instead if using a temlate that is part of my solution I would like to create the PDF from a standard template (e.g., Purchase Order). The challenge here is to find out the template code to use. So far I was only able to identify the data type OutputRequestFormTemplateCode (see Repository explorer) that seems to fit. But using this result in an "empty" output.
This is the code how I use it in my solution. According to the Repository Explorer the code "S1001" is the code for the purchase order template. The code is called within PurchaseOrder-Root-AfterModify, so this refers to purchase order root.
var FormTemplateLanguage = "E";
var PDF : BinaryObject;
var FormTemplateCode : OutputRequestFormTemplateCode;
FormTemplateCode.content = "S1001"; //OutputRequestFormTemplateCode
PDF = OutputManagementUtilities.GetPDF(this,FormTemplateCode,FormTemplateLanguage);
In the example the variable PDF never contains any content.
Any help is appreciated!
Cheers,
Daniel