mclisa81 Posted August 9, 2011 Share Posted August 9, 2011 Can anyone help me with the following rule that throws an error when composing. The output is fine, I would just like to get rid of the error so it doesn't confuse other operators. I have a 2 pg template that is controlled by the on record start rule below. The error is "No page is emitted, please check page usage in your input file". I believe it happens when the value of Field BMarks is 0. Thanks. if (Field("BMarks")=="0") { FusionPro.Composition.SetBodyPageUsage("Bookmarkfront", false) FusionPro.Composition.SetBodyPageUsage("Bookmarkback", false) } else FusionPro.Composition.repeatRecordCount = Field("BMarks"); Link to comment Share on other sites More sharing options...
Dan Korn Posted August 9, 2011 Share Posted August 9, 2011 If there's really nothing to compose for the record when the number is zero, then instead of turning off all the pages, just skip the record completely, like so: if (Field("BMarks")=="0") FusionPro.Composition.composeThisRecord = false; else FusionPro.Composition.repeatRecordCount = Field("BMarks"); Link to comment Share on other sites More sharing options...
mclisa81 Posted August 9, 2011 Author Share Posted August 9, 2011 Great! Thanks for the quick reply Dan. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.