tsghost Posted August 13, 2010 Share Posted August 13, 2010 I have a job that uses an external data file. I have the code working that loops through the file for each record but it is taking too long. I only have one instance that needs to be used for each record. Is there a way to only go through the external data file until it finds the relation, use it and then stop going through the file? This is an example of one of my rules. if(FusionPro.Composition.isPreview == true || FusionPro.inValidation == true) { Rule("OnJobStart"); } numRecsExtDF = externalDF.recordCount; for (recordWalker=1; recordWalker <= numRecsExtDF; recordWalker++) { if (externalDF.GetFieldValue(recordWalker, 'Studio') == Field("Store")) { if (externalDF.GetFieldValue(recordWalker, 'Flip Prize') == '1') { return Resource("29447_Inside_Glatfelter1.p1.pdf"); } return NullResource(); Thanks Link to comment Share on other sites More sharing options...
Dan Korn Posted August 13, 2010 Share Posted August 13, 2010 This thread is about the same issue: http://forums.printable.com/showthread.php?t=1608 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.