Use this form set level rule with the DPSPrint object in IDS to generate a print file that contains a set of forms which will be filtered by
The following attachment variables are created if these properties of the DPSPrint object are not null, in other words...
The input can be a list, with items separated by commas. Here are the search conditions you can use:
While executing the DPSPRT request from the DPSPrint object, the RPDCreateJob rule creates the DPRFORMNAME, DPRFORMDESCRIPTION, and DPRRECIPIENT tags in the job ticket.
< ReqType:DPSPRT >
function = atcw32->ATCLogTransaction
function = atcw32->ATCLoadAttachment
function = atcw32->ATCUnloadAttachment
function = dprw32->DPRSetConfig
function = dsijrule->JavaRunRule,;com/docucorp/ids/rules/
dps;DPS;global;duplicateAttach;,RV,CUSTOMERBATCH,
O,PRINTOUTPUTFILE,O
function = rpdw32->RPDCheckRPRun
function = rpdw32->RPDCreateJob
function = rpdw32->RPDProcessJob
Once job ticket is created, Documaker processes the job. Documaker reads the job ticket and creates a GVM variable with this name:
DPRFORMNAME, DPRFORMDESCRIPTION, and DPRRECIPIENTNAME.
The ServerFilterFormRecipient rule looks for the GVM name DPRFORMNAME, DPRFORMDESCRIPTION, and DPRRECIPIENTNAME and filters out the mismatch condition.
Here is an example in Visual Basic:
Private Sub CmdPrint_Click()
Dim oDPSVar As New DPSPrint
Dim oDPSIDS As New DPSIDS
oDPSVar.inputFile = FldInputFile.Text
oDPSVar.configurationName = FldConfig.Text
oDPSVar.outputFile = FldOutputFile.Text
oDPSVar.outputPath = FldOutputPath.Text
oDPSVar.printerType = FldPrinterType.Text
oDPSVar.Forms = "ABC,DEF*,*XYZ"
oDPSIDS.send oDPSVar
FinalOutput.Text = oDPSVar.outputPath + oDPSVar.outputFile
End Sub
All form names that equal ABC or start with DEF or contain XYZ are included in the final print file.
If all inputs (DPRFORMNAME, DPRFORMDESCRIPTION and DPRRECIPIENTNAME) exist, the recipient name is evaluated first and the form name and form description are evaluated later.
Note | Include this rule in the AFGJOB.JDT file after the LoadRcpTbl rule. |
Here is an excerpt from the AFGJOB.JDT file:
/* Every form set in this base uses these rules. */
<Base Form Set Rules>
;NoGenTrnTransactionProc;;required to combine gentrn/gendata into single step;
;BuildFormList;;;
;LoadRcpTbl;;;
;ServerFilterFormRecipient;;;
;RunSetRcpTbl;;;
;PrintFormset;;required to combine gendata/genprint into single step;
;WriteOutput;;;required to combine gentrn/gendata into single step;
;WriteNaFile;;;required to combine gentrn/gendata into single step;
;BatchingByPageCountINI;;;
;ProcessQueue;;PostPaginationQueue;
;PaginateAndPropagate;;FooterMode(2) Debug;
;ServerFilterFormRecipient;;;
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.