Hadrian Posted September 18, 2009 Share Posted September 18, 2009 Is it possible to load a table from an external text file or text resource? Link to comment Share on other sites More sharing options...
Dan Korn Posted September 18, 2009 Share Posted September 18, 2009 Sure, that's what the Frodo Travel tutorial does. Although, in general, you'll want to drive the table data from fields, and build the markup in a JavaScript rule. Link to comment Share on other sites More sharing options...
Hadrian Posted September 18, 2009 Author Share Posted September 18, 2009 I saw that it was similar to the graphic createresource for my specific purposes. Thanks. I am using FP to create a set of dynamic tables based on a hash array. The problem is that the array has gotten too big and i was thinking of moving the tables to a individual resources to avoid the huge composition time. I am assuming that there is no way to export the table markup FP outputs to make the table? The issue is that i am using CalculateTextExtent to make the proper padding and such and that makes FP the only way to measure all pre-existing aspects of the table. Link to comment Share on other sites More sharing options...
Dan Korn Posted September 18, 2009 Share Posted September 18, 2009 I am using FP to create a set of dynamic tables based on a hash array. The problem is that the array has gotten too big and i was thinking of moving the tables to a individual resources to avoid the huge composition time. I am assuming that there is no way to export the table markup FP outputs to make the table? I'm not sure what you mean by "the table markup FP outputs." FusionPro doesn't output any table markup. You output the table markup, generally from a rule, and FusionPro reads it as input. So, if you have a rule which generates the markup, then you can just save click Validate in the Rule Editor and copy and paste the markup to an external file. (Or use Print to write it to your log file or something.) Link to comment Share on other sites More sharing options...
Hadrian Posted September 18, 2009 Author Share Posted September 18, 2009 I forgot about Print.....I might use that then. Unfortunately i have 450 tables and copy paste would take too long. Thanks for the direction Dan. Link to comment Share on other sites More sharing options...
Hadrian Posted September 22, 2009 Author Share Posted September 22, 2009 Found a ridiculously easy way of doing this. Had FP compose every table (2500 to be exact) markup as non tagged text on a regular pdf. Used Automator to "Extract Text from PDF" for all PDFs. Took 3 minutes. It is a hodgepodge method but for the sake of brevity it works. Thought about creating a single log file and concatenating the xml (i think) syntax of <record> </record> and naming the record accordingly but that would still create a large log file that would require a lengthy parsing for the correct record. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.