Jump to content

Best Practices: Sequential Numbering Based on User Defined Start Number


andym

Recommended Posts

I am working on creating a coupon book, where a quantity of one equals 250 pages of coupons. Each coupon has the same image and a sequential number that increases by an increment of one each page. I've made a few attempts at altering the Sequential Numbering Rule, from the wizard, but don't know if I am taking the best approach.

 

My end goal is to have a single field to type a number into. This number will be the first number of the coupon book, and each page after will be sequential from the first number (i.e. if they type 1, the coupons are 1-250, or if they type 1250, the coupons are 1250-1500).

 

Is it possible to have a one-page template with static background and a variable text field, that creates a 250 page document? I have made an imposition file that will take a 250 page file and stack the files accordingly so the order is correct when cutting and assembling, but I don't understand how to connect the dots on the numbering.

 

I appreciate any information you can share to point me in the right direction. I looked through a number of threads, but maybe I am searching for the wrong terms (not sequential numbering??).

 

Thank you,

 

Andy

Link to comment
Share on other sites

You can do this by repeating the record 250 times. Add this line of code to an OnRecordStart Callback rule:

FusionPro.Composition.repeatRecordCount = 250;

 

Then you need to create a blank text rule that will return your sequence number:

var seq = Field("Start Number"); // Replace with the field name of the starting number
var result = (Int(seq) - 1) + FusionPro.Composition.repeatRecordNumber;
return result;

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