Hadrian Posted August 6, 2010 Share Posted August 6, 2010 Trying to get my head around how to loop this job but i am getting stumped on the reference syntax. Got a tab delimited data source. I am trying to find a way to create a graphic resource (ex: 10-HOH-1801.pdf) using the column header name to place the pdf inline with the rest of the column asset quantities. I used a loop last time but the fields all had an ascending numeric suffix. This data source does not. How can i capture the column header name in the loop? Or do i need to have fusionpro do a field count and use that in the loop? Link to comment Share on other sites More sharing options...
Dan Korn Posted August 10, 2010 Share Posted August 10, 2010 You can iterate through all the fields in the data with the FusionPro.Fields object, like so: var s = "Fields:\n"; for (var f in FusionPro.Fields) s += f + ": " + FusionPro.Fields[f] + "\n"; return s; Link to comment Share on other sites More sharing options...
Hadrian Posted August 10, 2010 Author Share Posted August 10, 2010 Thanks Dan. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.