Jump to content

Sequential numbering rule, with a twist


Recommended Posts

Hi, I am pretty new to FP, and know very little coding. I have a project. On each page there are three numbers, sequential. Page two continues with the numbering.

So, Page one has 4001, 4002, 4003. Page 2 has 4004, 4005, 4006 and so on. I've been creating an excel spreadsheet with three columns of the proper numbers. Works fine.. however.. is there a way to create a numbering rule for future use that skips every two numbers?

Link to comment
Share on other sites

If you're using FusionPro 8 or later, it's really easy. All you have to do is set a global variable in the OnJobStart callback rule to initialize the number. Like this:


number = 400; // Edit this starting number if needed

Then you create a text rule:

return number++;

Make sure "Re-evaluate this rule for every text flow" is checked. That's the most important step because that makes FusionPro run the rule for every text frame it's called in. So, every time the rule is called, it increments 'number' by 1. Your first text frame will show "401", the second will show "402" and so forth throughout the job.

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