Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Tables & Charts

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 16th, 2016, 06:24 AM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 116
Default First Table Advice

Good Morning Forum
I have a FusionPro job that will end up on Marcom and it has a large table on the back page. I have attached a single page pdf of the table I will need to build. This will be my first table and was looking for some advice on the best way to attack this. The only file I have is the Indesign Doc. All the chooses under the green headers will need to be editable in Marcom as far as if it prints or not and if it needs one or two bullets in the last two columns. I have studied the manual and the posts for building a table and i think i can do this. I guess my main question is do i create a XDF for all this data and pull it in that way or just code it all and how do i insure that all the choose are available to Marcom. Thanks for the help and advice. For once i have several weeks on this and it looks like a good opportunity to learn javascript syntax. Which is my main stumbling block. Thanks
Attached Files
File Type: pdf Testing.pdf (59.9 KB, 29 views)
Reply With Quote
  #2  
Old February 16th, 2016, 09:24 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,655
Default Re: First Table Advice

Quote:
Originally Posted by bkurzbuch View Post
I guess my main question is do i create a XDF for all this data and pull it in that way or just code it all and how do i insure that all the choose are available to Marcom.
That's not really a table question per se; you could be simply outputting the data as lines of text, without a table, and you would still need to know where the data is coming from.

I would say that if all of these options are really to be made available to the end MarcomCentral user, then they all need to be fields in the main data file. It will be a very large web form, however.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

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
  #3  
Old March 1st, 2016, 11:23 AM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 116
Default Re: First Table Advice

Hi Dan
I agree, yes it will. After meeting with the customer. That is what they want. Now most chooses will be pre filled on MCC and never be touched, but they want to ability to edit all chooses. Kind of a one stop place for all there coverage. So before I start down this rabbit hole. Any advice? I awesume i'll have to start with making a data file and go from there. Thanks for taking a look Dan
Reply With Quote
  #4  
Old March 1st, 2016, 12:50 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,655
Default Re: First Table Advice

Quote:
Originally Posted by bkurzbuch View Post
Hi Dan
I agree, yes it will. After meeting with the customer. That is what they want. Now most chooses will be pre filled on MCC and never be touched, but they want to ability to edit all chooses. Kind of a one stop place for all there coverage. So before I start down this rabbit hole. Any advice? I awesume i'll have to start with making a data file and go from there. Thanks for taking a look Dan
You probably want to ask on the MarcomCentral forum.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

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
  #5  
Old March 10th, 2016, 11:11 AM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 116
Default Re: First Table Advice

Hi Dan

I went to take a look at the Marcom forum and all the categories for it say private. How do I go about getting access to see and post to the Marcom Forum. Sorry, didn't know where else to post this question. Thanks for your time.
Reply With Quote
  #6  
Old March 10th, 2016, 01:19 PM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 266
Default Re: First Table Advice

Quote:
Originally Posted by bkurzbuch View Post
I went to take a look at the Marcom forum and all the categories for it say private. How do I go about getting access to see and post to the Marcom Forum. Sorry, didn't know where else to post this question. Thanks for your time.
Instructions for joining the MarcomCentral forum can be found here.
__________________
David Miller
FusionPro VDP Creator 12.0.3
Adobe Acrobat Pro 2021
macOS Big Sur 11.6.2
Reply With Quote
  #7  
Old March 10th, 2016, 01:27 PM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 116
Default Re: First Table Advice

Thank You Sir!
Reply With Quote
  #8  
Old March 14th, 2016, 09:51 AM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 116
Default Re: First Table Advice

Hi Dan
After my original post, I have more info from the customer and this forum and am ready to start programing these 2 tables, but am bogged down on the programing end. The 2 tables will be independent of each other and there are real only 3 instances I need to account for.

1. Header row - (Will remove if all the sue categories below are set to "remove".

2. Sub categories - (Will have 4 chooses "Advisor, Advisor Plus, Both or remove" Which will determine if there is a bullet point in column 2, 3, both or remove the entery.

3. Sub Categories with extra data - Same as 2 except with the additional text entered next to the sub category in a smaller font size.

I've read over the Table Builder Basics. I can declare the table it self (I assume it will need a different name for each table. I know how to declare the number and size of the columns (3) and number of rows as this is a fixed number for each table.

Where I'm getting bogged down is, Since I know the general formatting is just 3 choose's as outlined above. In stead of programming each row. Is there a way to apply the logic to multiple rows. I see the copy to function in the Table Basics, but with the field changing for each row, I'm unsure how to use it correctly. I understand the logic behind this all but not how to accomplise the syntax it self. This is always my main stumbling block when getting a new project that I can't use the Rule Wizard on. Any assistance or point in the right direction is Greatly appreciated. Thank You
Reply With Quote
  #9  
Old March 15th, 2016, 09:56 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,655
Default Re: First Table Advice

Quote:
Originally Posted by bkurzbuch View Post
In stead of programming each row. Is there a way to apply the logic to multiple rows.
Sure. The key to generating tables is to remember that your table is basically a two-dimensional array, with one dimension being rows and the other being columns. And the way to deal with arrays is to use loops, such as "for" loops.

You can just loop through all of the rows after creating the table, and apply whatever formatting you want to them, like in the Money Table rule in the Frodo Travel tutorial.

Or, you can deal with each row as you add it, as in many examples here on the forum, such as these:
http://forums.pti.com/showpost.php?p=11856&postcount=4
http://forums.pti.com/showpost.php?p=15435&postcount=4
http://forums.printable.com/showpost...45&postcount=2
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

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
  #10  
Old March 15th, 2016, 10:19 AM
bkurzbuch bkurzbuch is offline
Regular Contributor
 
Join Date: May 2014
Posts: 116
Default Re: First Table Advice

Thanks for the info Dan. As Always Greatly Appreciated.
Reply With Quote
Reply

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 06:37 PM.


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