I have a template that has a banner, cover letter, questionnaire(s), and trailer pages. The banner and trailer print once per run. The cover letter needs to print once per record, and the questionnaire will print one-to-many per record. Each questionnaire will have different variable data on it. For example, John Q Public is getting a cover letter, and needs to answer questionnaires regarding his attendance at 3 different schools, School A, School B, and School C. Therefore, he needs 3 questionnaires, one with variable data for School A, one for School B, and one for School C.
I only have Designer, I don’t have access to Workflow. We send our package files to our print plant to create our workflows and print our documents. My question is: how do I get the multiple questionnaires to print for each record? My Record breaks with each instance of “E385EC” and the questionnaires break with each instance of "E385EF’. Here is a sample “dummy” data file (only one record):
+$DJDE FORMS=E385EC,PMODE=PORTRAIT,FONTS=(P08TAC,CS10NP,P08TBA,P07TYA,CS10BP,HL08NP),;
+$DJDE BEGIN=(1.70,1.00),;
+$DJDE BEGIN=(2.24,1.00),;
+$DJDE DUPLEX=NO,SIDE=NUFRONT,END;
14April 6, 2017.
10JOHNNIE A CLAIMANT CID:99-999.999.999
0ADDRESS LINE 1 BYE:11/18
0CITY ST ZIP5#-ZIP4
0
0
+$DJDE FORMS=E385EF,PMODE=PORTRAIT,FONTS=(P08TAC,CS10NP,P08TBA,P07TYA,CS10BP,HL08NP),;
+$DJDE BEGIN=(0.55,2.90),;
+$DJDE BEGIN=(0.84,0.02),;
+$DJDE DUPLEX=NO,SIDE=NUFRONT,END;
10TEST SCHOOL #1
10 NAME:JOHNNIE A CLAIMANT CID:99-999.999.999 BYE:11/18 FO:040
+$DJDE FORMS=E385EF,PMODE=PORTRAIT,FONTS=(P08TAC,CS10NP,P08TBA,P07TYA,CS10BP,HL08NP),;
+$DJDE BEGIN=(0.55,2.90),;
+$DJDE BEGIN=(0.84,0.02),;
+$DJDE DUPLEX=NO,SIDE=NUFRONT,END;
10 TEST SCHOOL #2
10 NAME:JOHNNIE A CLAIMANT CID:99-999.999.999 BYE:11/18 FO:040
+$DJDE FORMS=E385EF,PMODE=PORTRAIT,FONTS=(P08TAC,CS10NP,P08TBA,P07TYA,CS10BP,HL08NP),;
+$DJDE BEGIN=(0.55,2.90),;
+$DJDE BEGIN=(0.84,0.02),;
+$DJDE DUPLEX=NO,SIDE=NUFRONT,END;
10 TEST SCHOOL #3
10 NAME:JOHNNIE A CLAIMANT CID:99-999.999.999 BYE:11/18 FO:040
+$DJDE FORMS=E385EF,PMODE=PORTRAIT,FONTS=(P08TAC,CS10NP,P08TBA,P07TYA,CS10BP,HL08NP),;
+$DJDE BEGIN=(0.55,2.90),;
+$DJDE BEGIN=(0.84,0.02),;
+$DJDE DUPLEX=NO,SIDE=NUFRONT,END;
10 TEST SCHOOL #4
10 NAME:JOHNNIE A CLAIMANT CID:99-999.999.999 BYE:11/18 FO:040
+$DJDE FORMS=E385EF,PMODE=PORTRAIT,FONTS=(P08TAC,CS10NP,P08TBA,P07TYA,CS10BP,HL08NP),;
+$DJDE BEGIN=(0.55,2.90),;
+$DJDE BEGIN=(0.84,0.02),;
+$DJDE DUPLEX=NO,SIDE=NUFRONT,END;
10TEST SCHOOL #5
10 NAME:JOHNNIE A CLAIMANT CID:99-999.999.999 BYE:11/18 FO:040
This is currently what I have as a control script to get everything to print (it prints one cover letter and questionnaire per record, and the banner and trailer):
//Page Control
var printSections = merge.template.contexts.PRINT.sections;
var CurrentRecord = record.index.toString();
// Array of Print Sections (Must be name of your print sections)
var ArrLang = [“E385EC”, “E385EF”, “Banner”, “Trailer”];
var arrayLength = ArrLang.length;
// Disable all Print Sections
for (var i = 0; i < arrayLength; i++) {
printSections[ArrLang[i]].enabled = false;
}
//Enable Banner Page
if (CurrentRecord == ‘1’) {
printSections.Banner.enabled = true;
}
var cid = record.fields.CID;
if(cid != ‘’)
{printSections[“E385EC”].enabled = true;
printSections[“E385EF”].enabled = true;}
//Trailer Page
if (record.index == record.fields.Trailer_Count) {
merge.context.sections.Trailer.enabled = true;
}
I know I need help in the section where I’m printing the pages. Any help would be greatly appreciated.
Thanks,
Alesa