Script Trigger for Printing Multiple Records on Different Layouts
I have 5 records, each of these utilizes a different layout for data entry as well as printing. A field "reporttype" in each record says what type of layout it will have (example: Transformer Test). I have script triggers in the data entry layouts that say when that "report type" field is modified, it will change the layout via calculation to the value in the field (i.e. if I change from Battery Test to Transformer Test, the layout will switch from Batttry Test data entry to Transformer Test data entry.
What I am now trying to do is replicate this functionality for printing. That way, if I have a found set that contains 5 reports, I can either choose to print 1 report at a time, or, all 5 reports - each with their appropriate print layout. All while in preview mode (our print script opens a separate window and puts the user right into preview mode).