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 20th, 2017, 09:11 PM
Susan Susan is offline
Regular Contributor
 
Join Date: Oct 2008
Location: Maitland, FL
Posts: 56
Default Table Outputs Multiples

I had to put together a quick test for a table job. When I compose the file, I get multiples pages of the same table. It should just output 2 pages, not 44 pages. Is there something in my table rule causing this? The file is attached.
__________________
FusionPro Creator v10.1.9 / FusionPro Producer / FusionPro Expression 3.2.2 / Mac OSX 10.13.6 / Acrobat Pro DC

Last edited by Susan; July 13th, 2017 at 10:09 AM..
Reply With Quote
  #2  
Old February 21st, 2017, 11:47 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Table Outputs Multiples

The reason you have 44 pages in the output file is because you have 22 records producing 2 pages each. You could change your composition settings to only compose records 1-1. Or, if you're going to have more than 1 record in a composition, you would need to keep track of the field that identifies each "record" and only compose the unique ones.

For example, if you want to compose records with unique "reservation numbers," you could do something like this:
JavaScript Globals
Code:
ids = [];
OnRecordStart
Code:
var unique = ids.indexOf(Field("Reservation Number")) == -1;
ids.push(Field("Reservation Number"));
FusionPro.Composition.composeThisRecord = unique;
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #3  
Old February 21st, 2017, 11:55 AM
Susan Susan is offline
Regular Contributor
 
Join Date: Oct 2008
Location: Maitland, FL
Posts: 56
Default Re: Table Outputs Multiples

Thanks Ste,

That was my problem. Composing 1-1 is what I needed.

Susan
__________________
FusionPro Creator v10.1.9 / FusionPro Producer / FusionPro Expression 3.2.2 / Mac OSX 10.13.6 / Acrobat Pro DC
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 01:42 AM.


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