Jump to content
Welcome to the new FusionPro User Forum! ×

Help with on record start error.


mclisa81

Recommended Posts

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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...