Ryan,

Just sort of thinking out loud here, but if you look at the file on the
KnowledgeBase for the multiple Business Card, it has a method in its
script to write records to a new file that you create in OnJobStart.

If you augment this script to: 1) not be of a variable length but a
specified "chunk"-length that you define; 2) as you are adding records,
test for the change in your "file category" field; 3) when you change
from one file-category to the next, continue the adding loop with blank
records 4) repeat the loop for the next set of records until your entire
input file is finished.

On second thought, this may need a nested loop. Using the
ExternalDataFileEx you can search through and determine the number of
changes for your field category. The outer-loop would be this number of
file-categories your script counted, while the inner-loop would contain
your "chunk-defined" loop to append records and blanks.

---
David A. Sweet
Web Designer/Graphic Designer
HKM Direct Market Communications
A DirectConnectGroup Company 


-----Original Message-----
From: Ryan Blackmer [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 2:24 PM
To: FusionPro Users Forum
Subject: [fusionpro] Re: Can Callbacks be Nested?

Thank Raul,

Unfortunately... I was the original poster of "Splitting Records  
based on a Field in the data Body".

Your suggestion does work and I currently use it or manually split  
the database depending on the number of total records.

I simply want to automate the whole process since there are upwards  
of 30-50 groupings. Composing the same database 30-50 times would  
drive anyone crazy.

I understand Dan's original suggested process but am having a  
difficult time with the last part. I somehow need to distill the data  
into a temp. file and insert empty records up to the maximum records  
per "chunk" or group. FusionPro would then skid or not compose the  
empty records. I understand the ExternalDataFileEx part. I already  
have a summery sheet based on the input file.

So I guess the question should really be...
How do I (or what is the javascript code to) insert the empty records  
into the temp file?

Ryan



+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how!
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to