#1
|
|||
|
|||
![]()
Hello, I have a situation where the user might supply a file with say 100 records. Can I setup a rule or script whereby the system will stop reading records after say the 20th record? I do not want to have to manually remove records from the proved file. I want to ensure it never goes above whatever limit I end up setting it at.
As a side note: If I set the Record Range on the input tab of the compose settings screen, does this setting remain in place for a fusion pro doc that is "collected" for a Marcom portal? Thanks! |
#2
|
|||
|
|||
![]()
I have not used Marcom, but to answer the first part of your question, this will work:
Code:
var RecordLimit = 20; if (FusionPro.Composition.inputRecordNumber > RecordLimit){FusionPro.Composition.composeThisRecord = false;} |
#3
|
|||
|
|||
![]()
Thanks! I'll give it a shot.
|
#4
|
|||
|
|||
![]()
BTW, does that script go in the OnJobStart or OnRecordStart?
|
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|