CSzydlowski Posted August 21, 2013 Share Posted August 21, 2013 I'm sure that I am the culprit, but I've attached my collected job and hopefully someone can help me. Only the first record is outputting, although it says it is running through all of the pages.307974_Pages.zip Quote Link to comment Share on other sites More sharing options...
step Posted August 21, 2013 Share Posted August 21, 2013 (edited) I believe that's because you did not close the brackets on your if statements. So instead of having 6 if statements, you have 1 if statement with 5 nested if statements within it. if (Field("VERSION") == "V1-A") { FusionPro.Composition.SetBodyPageUsage("1-A",true); FusionPro.Composition.SetBodyPageUsage("BC",true); [color="Red"]}[/color] [color="Red"]else[/color] if (Field("VERSION") == "V1-B") [color="red"]{[/color] FusionPro.Composition.SetBodyPageUsage("1-B",true); FusionPro.Composition.SetBodyPageUsage("BC",true); [color="red"]}[/color] ...etc... Though I think you could really simplify things by setting the "BC" page to used instead of unused since you turn it on in every scenario, and replacing your entire OnRecordStart rule with this: var vers = Field("VERSION").replace("V",""); FusionPro.Composition.SetBodyPageUsage(vers, true); Edited August 21, 2013 by step syntax Quote Link to comment Share on other sites More sharing options...
CSzydlowski Posted August 21, 2013 Author Share Posted August 21, 2013 Step: that fixed it! Thank you so much. 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.