rpaterick Posted April 7, 2009 Share Posted April 7, 2009 I have a sequence number going from: 149000000 to 149016499. I'm not sure how you set this up in FP "Rules." Thanks! Link to comment Share on other sites More sharing options...
Dan Korn Posted April 7, 2009 Share Posted April 7, 2009 What exactly do you mean by "I have a sequence number going?" What are you doing with it? If you're just doing a ticket-type job and you want to compose records with those numbers printed on them somwhere, you can make a rule like this: return CurrentRecordNumber() + 149000000 - 1; Then you can set the record range to compose from 1 to 16499, either on the Input tab of the Composition Settings dialog, or in an OnJobStart rule by setting FusionPro.Composition.endRecordNumber Link to comment Share on other sites More sharing options...
rpaterick Posted April 7, 2009 Author Share Posted April 7, 2009 If you're just doing a ticket-type job and you want to compose records with those numbers printed on them somwhere That worked. I was just unclear on the code and composing for the range. BTW, what is the "leading zero" do? Thanks Dan! Link to comment Share on other sites More sharing options...
Dan Korn Posted April 8, 2009 Share Posted April 8, 2009 BTW, what is the "leading zero" do? Sorry, I don't understand the question. Link to comment Share on other sites More sharing options...
esmith Posted April 8, 2009 Share Posted April 8, 2009 Then you can set the record range to compose from 1 to 16499 ... in an OnJobStart rule by setting FusionPro.Composition.endRecordNumber In this scenario, would I need to link to a data file with 16,499 records, or could I link to a 1-record "dummy" file and allow the JS to override the "dummy" data? I like the idea of not needing a basic data file with sequential numbers, but I tried testing the JobStart rule, and my resulting output file just had one page. Do I need to add some sort of FOR loop in a callback rule to force a multi-record output file? Link to comment Share on other sites More sharing options...
Dan Korn Posted April 8, 2009 Share Posted April 8, 2009 In this scenario, would I need to link to a data file with 16,499 records, or could I link to a 1-record "dummy" file and allow the JS to override the "dummy" data? Just set your Data Source Format to "None" on the second step of the Define Data Source Wizard. I like the idea of not needing a basic data file with sequential numbers, but I tried testing the JobStart rule, and my resulting output file just had one page. Do I need to add some sort of FOR loop in a callback rule to force a multi-record output file? No, just do this in OnJobStart: FusionPro.Composition.composeAllRecords = false; FusionPro.Composition.endRecordNumber = 16499; // however many records you want Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.