esmith Posted December 15, 2014 Share Posted December 15, 2014 How would I go about beginning a new imposition sheet when a value (e.g. store number) changes? I know about FieldChanged("field_name") for arbitrary chunking, but I am not chunking output. I also saw the StartNewStack() method, but I am not stacking. I am creating a single output file with records in sequential order. Due to potentially large data files, we are trying to get by without preprocessing. I have a 36-up FPImposer template with records in data being imposed across/down each sheet before moving to next sheet. Sheets will be sent to client UN-trimmed (the sheet is kiss-cut and shipped as a full sheet of stickers). I need to move to a new sheet when the store number changes in the data. If store 001 has 54 records, it will get one full sheet of 36 stickers and a 2nd sheet with 18 records -- the remaining 18 positions need to be blank. The 55th record (first record for store 002) begins on sheet 3. Anyone have an idea on how to go about inserting blank records without a corresponding row of data? I'm thinking the OnRecordStart callback needs to insert (recordNumber % 36) blanks to force the next store/record to the next imposition sheet but I can't figure out how to do it. Note: I didn't want to hijack blackbelt60's recent thread in the event our issues are different. It sounds like he is trying to do something similar. Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted December 16, 2014 Share Posted December 16, 2014 Take a look at the zip file I posted here: http://forums.pti.com/showpost.php?p=15892&postcount=2 Seems like this is what you want. Notice the Stack is set to 1 in the imposition. Quote Link to comment Share on other sites More sharing options...
dreimer Posted December 16, 2014 Share Posted December 16, 2014 (edited) Hmm, I tried to look at your sample you referred to but I am unable to duplicate your output. The rules didn't come across in the zip file. I assume that is because the def file is not there. Nevermind, figured it out! This works well! Edited December 16, 2014 by dreimer Quote Link to comment Share on other sites More sharing options...
esmith Posted December 16, 2014 Author Share Posted December 16, 2014 Thanks Thomas. I admit I looked at your thread previously and discounted it without downloading the attachment thinking I was not chunking (which to me suggests multiple output files). But after looking at your example, it is exactly what I needed and done much more "elegantly" than I was thinking would be necessary. Much appreciated. Quote Link to comment Share on other sites More sharing options...
DSweet Posted September 9, 2016 Share Posted September 9, 2016 Thomas, I am trying your script and it works for the data file you have sent over with it. However I am trying to modify it to work with a repeatRecordCount field and it doesn't seem to be going well. Any suggestion please? . Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted September 9, 2016 Share Posted September 9, 2016 I'm not real sure what you are trying to do based on your brief description. If I had to guess, you have something like: Red, 20 Green, 15 Blue, 32 Then you want 3 separate output files with an imposition populated with the count indicated? Quote Link to comment Share on other sites More sharing options...
DSweet Posted September 9, 2016 Share Posted September 9, 2016 That is correct. I get an excel file with shirt orders for small, med, large, up to 6XLT. And another columns tells me how many of each shirt is needed to fulfill this specific order. I then create a label sticker for each shirt size that we send to our shirt vendor so they can count out enough and label them by size for easy picking later on. I used to just print the stickers out one after another running from sheet to sheet, but our vendor for the shirts says that is TOO COMPLICATED for them and wants each size on a separate sheet. . Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted September 9, 2016 Share Posted September 9, 2016 (edited) EDIT: I think I misunderstood at first, this should work: FusionPro.Composition.chunksBreakStacks = true; var amount = parseInt(Field("Unit")); FusionPro.Composition.repeatRecordCount = amount; var rrn = FusionPro.Composition.repeatRecordNumber; if (rrn == 1) FusionPro.Composition.StartNewStack(); FindTextFrame("Content").content = '<color name="' + Field("Group") + '">' + rrn + " of " + amount; The CSV should look like this: Group,Unit Red,20 Green,15 Blue,32 Edited September 9, 2016 by ThomasLewis Quote Link to comment Share on other sites More sharing options...
DSweet Posted September 12, 2016 Share Posted September 12, 2016 Tom, Thank you for your suggestion, but when I tried it the pages just ran together instead of breaking apart to a new page when the size code changed. I've attached my template and a sampling of the data file. All I'm printing is the size "S", "M", "XL", etc on a label. The field OrderQty lets me know how many of that specific label I need. I've attached as well the resulting pdf file from that test run, plus the results that I came up with the hard way...compiling the records one by one and then combinging the pdf files together afterwards. . Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted September 12, 2016 Share Posted September 12, 2016 If you look back at my very first post in this thread, there is a bit of vital information there to get this to work. In the imposition, you have to set the stack to 1. I've attached a revised version of your fpi file.85x11_30-up.fpi Quote Link to comment Share on other sites More sharing options...
DSweet Posted September 12, 2016 Share Posted September 12, 2016 Thank you Thomas, that was what I was missing. It now works as you programmed. Thank you. . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.