on 02-02-2018 4:54 PM
Hi,
I've followed this guide and I'm getting the below error message when my action is called via a button click:
'Mandatory parameter binary data is missing'
Save After Execution is ticked on the action. My code is as follows:
import ABSL;
import BASIS.Global; //BinaryObject.
import AP.Common.GDT as gdt; //OutputRequestFormTemplateCode.
import DocumentServices.Global; //OutputManagementUtilities.
var pdf:BinaryObject;
var formTemplateCode:OutputRequestFormTemplateCode;
formTemplateCode.content = "<Solution ID>_PGS";
var userAccount:UserAccountID;
var formTemplateLanguage = "E";
pdf = OutputManagementUtilities.GetPDF(this, formTemplateCode, formTemplateLanguage);
pdf.fileName = "CustomerInvoice";
userAccount.content = "PRT_001";
var output = OutputManagementUtilities.CreatePrintQueueItem(userAccount, pdf.fileName, 1, pdf, "TESTQUEUE");
var x = 10;
The form template code is correct, as is the print user ID and the name of the print queue. The script file isn't mass-enabled. I've deployed the business configuration of the solution.
Any ideas?
Cheers,
Lewis
Solved it --- as opposed to using the group code a la Preview buttons, use the actual form code!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.