Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.


Thread Tools Search this Thread Display Modes
Old June 15th, 2009, 09:13 AM
dave2297 dave2297 is offline
Junior Community Member
Join Date: May 2009
Posts: 30
Default Tables using variable data

Hi all

Dan Korn and esmith have helped me tremendously with my issues regarding diagonal strikethroughs


and Dan kindly suggested that I may do better to set up a document using tables and directed me to the Frodo Travel Tutorial - which would be fine if I wanted to create fixed text tables in a text editor and then import the resource as a tagged text file. I don't want to do this - I would rather create a resource in the rule editor using 'quoted string literals 'because then I would be able to assign cell values to fields in a data source.

I have read the user guide section regarding tables and can't find the correct syntax to use anywhere - I cannot validate my code as it keeps telling me I am entering an unexpected xml statement?? As you have probably guessed I am a complete newcomer to JavaScript (but I'm trying - honestly)

I don't want to bore anyone with the intricacies but just wondered if anyone may be able to direct me to (or send me) any meaningful examples of tables created in the rule editor as 'quoted string literals' that call in variable data and then hopefully I can work out the structure and syntax and apply it to my job?

Dave Farmer
FusionPro Desktop 6.0P1e
Adobe Acrobat 9 Pro Ver 9.0.0
Mac OS XZ Ver 10.5.6
Reply With Quote
Old June 16th, 2009, 09:38 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,502
Default Re: Tables using variable data

Basically, you need to put all the tags in quotes. See this post for an example:

The Frodo Tutorial should probably be updated to better demonstrate building tables dynamically in JavaScript rather than importing static markup files.
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
Old June 16th, 2009, 10:31 AM
dave2297 dave2297 is offline
Junior Community Member
Join Date: May 2009
Posts: 30
Default Re: Tables using variable data

Hi Dan

Thanks for the reply, I had looked at that thread and had started to use it as the basis for building my table. I have got this far:
var myTable = '<table columns =5><column width=10000><column width = 40000><column width = 10000><column width = 10000><column width = 10000>';
for(var i=1;Field('DESC'+i)!='';i++)
myTable += '<row><cell><f name = "FrutigerLT 55 Roman"><z newsize="10">' + Field("CODE"+i)+'<cell><z newsize="';

myTable += '14';
myTable += '16';

myTable += '">' + Field("DESC"+i);
myTable += '<cell><z newsize = "20">'+ Field("DISPLIST"+i);
myTable += '<cell><f name = "Frutiger 77BlackCn"><z newsize="28">'+ "SALE";
myTable += '<cell>'+ Field("DISPSALE"+i);
myTable += '<row><cell><cell><f name = "FrutigerLT 55 Roman"><z newsize="10">' + Field("SUBHEAD"+i);
myTable += '</table>';

return myTable;

Now all I need to figure out is how to align 'bottom' the contents of a row and, could you possibly tell me if it is possible to adjust the leading between rows - depending on whether the contents of field 'SUBHEAD'+i is populated or not?


Dave Farmer
FusionPro Desktop 6.0P1e
Adobe Acrobat 9 Pro Ver 9.0.0
Mac OS XZ Ver 10.5.6
Reply With Quote

data, tables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.