Setting a uPlan ADOR as output parameter in C#

47 views
Skip to first unread message

James Harrod

unread,
Aug 1, 2018, 4:53:40 AM8/1/18
to XMPie Interest Group
Hello,

I have developed a C# application that checks hot folders for files, uploads them to uProduce and submits the job.

I've been asked if I can add functionality to allow an ADOR to be used as the output filename.

I've looked in the uProduce API (Version 7.2.1 Build 8061) help file, and it has this:

  // In order to change the output file name, add the following code before the SubmitJob:      
XMPieAPIWS.Parameter param = new XMPieAPIWS.Parameter();
param.m_Name = "FILE_NAME_ADOR";
param.m_Value = "[AdorName]";
jobTicketWS.SetOutputParameter(uName, password, jobTicketID, param);

Can someone explain what needs to go into 'param.m_Name' and 'param.m_Value' as it's not very clear? As in the attachment, I would have assumed that I'd only need the name of the ADOR and not the value?

Thanks,
James
OutputNameADOR.JPG

couch

unread,
Aug 1, 2018, 5:17:13 AM8/1/18
to XMPie Interest Group
The m_name is already set in the sample code.
The m_value is the name of an ADOR object in your plan file that you want to set as the output filename.
Available parameter names are listed on the setOutputParameter() and setOutputParameters() methods:


James Harrod

unread,
Aug 1, 2018, 8:53:53 AM8/1/18
to XMPie Interest Group
Hi,

That worked a treat!

Cheers :)
Reply all
Reply to author
Forward
0 new messages