Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting a JavaScript data merge

Status
Not open for further replies.

DavidRock

Programmer
Jul 24, 2002
61
US
Hello,
I'm trying to write a JavaScript that will walk through each record in a data file and merge the record, save the merged document and close it. A merge of all records works using the example in the scripting addendum, but I can't figure out how to tell it to only merge a single record. I know the key is to use recordSelection & recordRange, but I don't understand how to modify those properties. I know I must be missing something basic about JavaScript, can anybody help?

Thanks,
David
 
If anyone could show me how to properly set the merge preferences using JavaScript, I can take it from there. Specifically, how to merge one specific record at a time. I'm getting "object required" and "Object doesn't support this property or method" errors that make me wonder is the documentation is accurate. But, it's likely something I'm doing wrong. I've asked Adobe tech support 3 different times, but each time they couldn't help and refunded my $39.

I appreciate any help you can offer.

Thanks,
David
 
Have you tried the InDesign scripting forums at adobeforums.com?

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
I have, but unfortunately nobody has been able to help me there yet. I've also asked Adobe tech support to clarify the JavaScript merge functions from the scripting guide, but surprisingly they couldn't help either. At this point, I'm not sure if I'm doing somthing wrong or if the documentation is wrong.
 
David,
I have the same problem - I need a system for creating catalogs with 1-2 pictures and 12-20 product listings on each page.
I have tried Pagemaker's merge and it does save each record as separate static page but it doesn't allow inserting groups of records on a single page.
I've heard that there is Pagemaker plug-in pack for InDesign CS.
What version of InDesign you are using now?

Way
 
Way,
I'm using InDesign 3.0.1 with the PageMaker PlugIn on Win2K. It has a merge option to set the number of records per page, but I haven't tried to do so.
 
I found out that Pagemaker has number of recs per page setting also.
It looks like MS Word & Publisher have the best merging features but with some unfortunate (for me) limitations.
It is time to start looking for custom programming regarding this matter... in India or Russia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top