Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 30th, 2016, 08:30 AM
Landisa's Avatar
Landisa Landisa is offline
Junior Community Member
 
Join Date: Jun 2014
Location: United States
Posts: 31
Default Coupon Sequence Down Stack Issue [SOLVED]

Background: Simple coupons with sequential numbering set 4Up on a sheet.

Problem: Sequential starting number works if I don't have "stack" set in the imposer. Once "stack" is set the starting number is disregarded and begins at 1.

OnJobStart Code:
Code:
var startNumber = 69000; //Enter the begin number provided.
var totalCoupons = 1875;  //Enter the number of total coupons
var endNumber = (startNumber + totalCoupons) - 1;  

FusionPro.Composition.composeAllRecords = false;
FusionPro.Composition.startRecordNumber = startNumber;
FusionPro.Composition.endRecordNumber = endNumber;
Empty Rule Code (CouponNumber):
Code:
return CurrentRecordNumber();
FusionPro Imposer Settings:
Simplex
Stack Count 10000 OR Checked Infinite Stack
Vertical Count 4 0" Spacing

Goal: To have a coupon numbering system that did the counting down stack starting at a number other than 1

Answer: Made suggested changes to OnJobStart code and EmptyRule code provided by tou in the second post. Thanks! ^^,
__________________
Audra Landis
Computer Systems Admin

VDP Producer v10.0.3
Windows 7 / Windows 10
Acrobat Pro DC (2015.010.20056)

Last edited by Landisa; June 30th, 2016 at 10:56 AM.. Reason: Change title to Solved
Reply With Quote
  #2  
Old June 30th, 2016, 09:56 AM
tou tou is offline
Regular Contributor
 
Join Date: Oct 2015
Posts: 107
Default Re: Coupon Sequence Down Stack Issue

your onJobStart should reference the total number of coupons only...
Code:
var totalCoupons = 1875;  //Enter the number of total coupons

FusionPro.Composition.composeAllRecords = false;
FusionPro.Composition.startRecordNumber = 1;
FusionPro.Composition.endRecordNumber = totalCoupons;
your onRecordStart should be set to allow infinite stack to be set:
Code:
FusionPro.Composition.chunksBreakStacks = true
your serial # should use the system record # which is 1 and increment it by your starting coupon number:
Code:
return CurrentRecordNumber()+69000;
If you want to start at 69000, set 69000 to 68999.......or throw in a "-1" after the "69000" above.

I think you can call global variables, but you'll need a onRecordEnd to increment it? I don't know global variables too well at this point. Sorry.

Hopes this helps.
Attached Files
File Type: pdf Output.pdf (145.8 KB, 6 views)

Last edited by tou; June 30th, 2016 at 10:02 AM..
Reply With Quote
  #3  
Old June 30th, 2016, 10:53 AM
Landisa's Avatar
Landisa Landisa is offline
Junior Community Member
 
Join Date: Jun 2014
Location: United States
Posts: 31
Default Re: Coupon Sequence Down Stack Issue

Quote:
Originally Posted by tou View Post
your onJobStart should reference the total number of coupons only...
Code:
var totalCoupons = 1875;  //Enter the number of total coupons

FusionPro.Composition.composeAllRecords = false;
FusionPro.Composition.startRecordNumber = 1;
FusionPro.Composition.endRecordNumber = totalCoupons;
your onRecordStart should be set to allow infinite stack to be set:
Code:
FusionPro.Composition.chunksBreakStacks = true
your serial # should use the system record # which is 1 and increment it by your starting coupon number:
Code:
return CurrentRecordNumber()+69000;
If you want to start at 69000, set 69000 to 68999.......or throw in a "-1" after the "69000" above.

I think you can call global variables, but you'll need a onRecordEnd to increment it? I don't know global variables too well at this point. Sorry.

Hopes this helps.
Yes it does! This worked perfectly! Also, I didn't need the onRecordStart portion to get it to do what I needed it for. Thanks! ^^,
__________________
Audra Landis
Computer Systems Admin

VDP Producer v10.0.3
Windows 7 / Windows 10
Acrobat Pro DC (2015.010.20056)
Reply With Quote
Reply

Tags
coupon, imposer, numbering, sequence, stack

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.