CCS_Printing Posted July 1, 2011 Share Posted July 1, 2011 I'm trying to make a 4 page flyer so that the user can pick what pages they would like to have printed, instead of all 4 pages. I have a on record start rule that says if "1" is picked then the first story will come up and so on all the way to 4. if (Field("Stories") == "1") { FusionPro.Composition.SetBodyPageUsage("1", true); } if (Field("Stories") == "2") { FusionPro.Composition.SetBodyPageUsage("2", true); } if (Field("Stories") == "3") { FusionPro.Composition.SetBodyPageUsage("3", true); } if (Field("Stories") == "4") { FusionPro.Composition.SetBodyPageUsage("4", true); }What I'm having trouble figuring it out is how to make it so the user can pick any 1, 2, or 3 stories they want, that it doesn't just go in order 1-4. I wasn't sure if a rule needed to be made or if something in Marcom needs to be set up. Any help is much appreciated. Link to comment Share on other sites More sharing options...
Dan Korn Posted July 1, 2011 Share Posted July 1, 2011 Do you mean that they can pick each story independently, so that, for instance, they can pick just 2 and 3 without 1 and 4? If so, I think you're going to need four separate fields. Link to comment Share on other sites More sharing options...
CCS_Printing Posted July 1, 2011 Author Share Posted July 1, 2011 Exactly, I did do 4 separate fields...but how do I get those fields to correspond to the page numbers? I have Story1 for instance and if that were picked I would need page 1 to come up. When I tried doing that in on record start though it wouldn't work... Link to comment Share on other sites More sharing options...
Dan Korn Posted July 1, 2011 Share Posted July 1, 2011 Exactly, I did do 4 separate fields...but how do I get those fields to correspond to the page numbers? I have Story1 for instance and if that were picked I would need page 1 to come up. Okay, so what is the value in that field which indicates that Story 1 should be activated? If it's "1", then you want to do this: FusionPro.Composition.SetBodyPageUsage("1", Field("Story1") == "1")); FusionPro.Composition.SetBodyPageUsage("2", Field("Story2") == "1")); FusionPro.Composition.SetBodyPageUsage("3", Field("Story3") == "1")); FusionPro.Composition.SetBodyPageUsage("4", Field("Story4") == "1")); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.