Jump to content

Repeat Count Record and Unused Body Page


rgreenidge

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...