rgreenidge Posted November 30, 2009 Share Posted November 30, 2009 I have a template that has two versions of a creative and I am trying to use the Repeat Count Record function at the same time, but i can seem to get it to work. I tried placing the Repeat Count Record function in my Java Scripts Globals but that didn't seem to work. I then tried placing the following: { return FusionPro.Composition.repeatRecordCount = Field("Field 1"); } if (Field("Field 1") == "E") { FusionPro.Composition.SetBodyPageUsage("E", true); } else if (Field("Field 1") == "F") { FusionPro.Composition.SetBodyPageUsage("F", true); } return ""; Link to comment Share on other sites More sharing options...
Dan Korn Posted December 1, 2009 Share Posted December 1, 2009 I have a template that has two versions of a creative and I am trying to use the Repeat Count Record function at the same time, but i can seem to get it to work. I tried placing the Repeat Count Record function in my Java Scripts Globals but that didn't seem to work. I then tried placing the following: { return FusionPro.Composition.repeatRecordCount = Field("Field 1"); } if (Field("Field 1") == "E") { FusionPro.Composition.SetBodyPageUsage("E", true); } else if (Field("Field 1") == "F") { FusionPro.Composition.SetBodyPageUsage("F", true); } return ""; Delete word "return" in red above (just that keyword, not the entire line). The "return" effectively short-circuits the rest of the rule. You don't need to use "return" when assigning a value to a property (such as FusionPro.Composition.repeatRecordCount) anyway. Link to comment Share on other sites More sharing options...
rgreenidge Posted December 3, 2009 Author Share Posted December 3, 2009 Thanks for your help Dan. Your suggestion worked. Richard. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.