dreimer Posted May 28, 2013 Share Posted May 28, 2013 I want to have two OnRecordStart Rules but can't seem to figure out how to do it. I have a five page template and would have one rule calling out the page needed based on the data and I also wanted to have the dieline show only when the filename has the word die in it. Here are my two seperate rules. FindGraphicFrame("DieLine").suppress = FusionPro.Composition.outputFileName.indexOf("die") < 0; FusionPro.Composition.SetBodyPageUsage(Field("Version"), true); Is this possible? I tried to have the dieline rule as an OnJobStart but that didn't work. TIA. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted May 28, 2013 Share Posted May 28, 2013 Just put both bits of code into the (single) OnRecordStart rule. As long you as you don't have a return statement which interrupts the processing, you can put as much as you want in there. Quote Link to comment Share on other sites More sharing options...
dreimer Posted May 28, 2013 Author Share Posted May 28, 2013 Hmmm, I tried that and I can't get it to work. The Signoff_die.pdf works and I get the dieline on every page. The Signoff.pdf doesn't have the dieline on the "Used" Body Page, but the "Unused" Body pages that are being pulled in from the SetBodyPage part of the OnRecordStart rule have the Dieline. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted May 28, 2013 Share Posted May 28, 2013 Hmmm, I tried that and I can't get it to work. The Signoff_die.pdf works and I get the dieline on every page. The Signoff.pdf doesn't have the dieline on the "Used" Body Page, but the "Unused" Body pages that are being pulled in from the SetBodyPage part of the OnRecordStart rule have the Dieline. Then something else is going wrong that I can't determine just from the rule. You could post the job and someone might be able to look at it. Quote Link to comment Share on other sites More sharing options...
dreimer Posted May 28, 2013 Author Share Posted May 28, 2013 Figured it out. I had all 5 graphic frames named "DieLine" and it must only look at the first instance. Changed them all to be unique names and updated the rule and works great. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.