Jump to content

odd or even records


Recommended Posts


yes you can accomplish this. I'm guessing you want to suppress one of the frames based on the record being odd or even... At least that is what my code below is showing.

if (FusionPro.Composition.inputRecordNumber % 2) //this is validating if the record # is odd











My template had 2 frames with the same content, one with text in red one in blue (hence the frame names), so if the record number is odd then "Red" is suppressed, if even then "Blue" is.


Hope this helps

Link to comment
Share on other sites

I tried the rule and get this error when I validate,"OnRecordStart, line 8: ReferenceError: FindTextFrame is not defined".

You need to be running FusionPro 6.0 or later in order to use the JavaScript frame API. I highly recommend upgrading, as there are tons of new features in the three major revisions of FusionPro since version 5.


That said, you may be able to achieve something similar in FusionPro 5 with the FusionPro.Composition.SetBodyPageUsage function, where you have frames bringing in completely different data on different pages.

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.

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...