Right now I compose one file at time then change the data file rename the output file then hit compose. So that as soon as it finishes the other one starts. I repeat the same process over and over. Kinda of tedious!
I'm trying to find logic/script to deal with multiple data files then output composed files(PDF) with the name of the data file.
I found this logic and manipulated it how I think it should work.
externalDF = new ExternalDataFileEx('/Users/tony/Desktop/Gold 2012/Data/POD-DOM-GRA-V1-1.txt', ',');
or maybe it should loop like Dan Korn's logic:
var result = "";
for (var i = 1; i <= ID_Numbers.recordCount; i++)
{
if (ID_Numbers.GetFieldValue(i, "ID") == Field("ID"))
{
result += ID_Numbers.GetFieldValue(i, "Name") + ", " +
ID_Numbers.GetFieldValue(i, "Location") + ", " +
ID_Numbers.GetFieldValue(i, "Date");
}
}
return result;
How do I define ID numbers? Insert the path of the Data on my desktop?