#1
|
|||
|
|||
![]()
Good Morning Everyone,
I am having issues with an external database composing records when using FusionPro Server. I am using Mac OS 10.15.7, Adobe Acrobat DC 2021, FusionPro VDP Designer 12.0.2. I have and onjob start rule that pulls in the external database (see below) externalDF = new ExternalDataFileEx('196176_IDM_22NB JAN NEWSLETTER FINAL DATA.txt', '\t'); if(externalDF.valid != true) { Print('Failed to link to the external data file in OnJobStart'); } When I preview on screen, everything looks correct, however when I compose a record or several records, the external database does not print. What am I missing? Thank You, Rob Sheldon |
#2
|
|||
|
|||
![]()
Hi Rob
I had the same issue when we switched to producer. Try adding the XDF as a plain text resources and then compose. That should fix the problem |
#3
|
|||
|
|||
![]()
When using XDF with producer, we always have to be sure to include a copy of it in the folder designated in the "search path for images" in producer.
|
#4
|
||||
|
||||
![]()
The issue is that the XDF is present on your local Designer machine, but is not found when you do the full composition on the remote FP Server machine. As others have noted, this has been an issue for users of FusionPro VDP Producer as well.
But that was the past. A lot of things changed in FP 11. We added a feature in FusionPro VDP 11.2 to make this all much easier. Instead of putting the XDF file on the network, or adding it as a plain text resource, you can now manage XDF files, which we now call Secondary Data Sources, in the same way you define your primary data source. From the Define Data Source dialog, you can click on the Secondary Sources button. Or, from the menu in Acrobat, you can select FusionPro -> Data Definition -> Secondary Data Sources. This brings up the new Data Sources dialog, where you can define all of your data sources the same way as your primary source. So, instead of defining your XDF in JavaScript, you can now add the data source, of any format (including ODBC on Windows), using the Data Sources dialog. When you click Add, you'll be taken through the same set of Wizard dialogs as with your primary data source, where you can select all of the options relevant to the data, such as the delimiter, the encoding, and even the sheet for Excel. Also, on the Collect dialog, there's now a check box for Secondary data sources (which is checked by default). So the data source will automatically be collected up with the other job files, including the primary data source, and will always be found, even in a remote composition with FP VDP Producer or Server. Also, the data source will be accessible by its source name in your rules. So instead of this: Code:
externalDF = new ExternalDataFileEx('196176_IDM_22NB JAN NEWSLETTER FINAL DATA.txt', '\t'); Code:
externalDF = FusionPro.GetDataSource("My Secondary Data"); If you're willing to post the job, I can show you how you can set it up to access the XDF without any JavaScript rules at all. Or, you can take a look at the Statement-MultiFile.pdf job in the Statement folder under the FusionPro Tutorials (from the Acrobat menu, FusionPro -> Documentation -> Tutorials). This is also all documented in the FusionPro VDP User Guide, in the sections about Secondary Data Sources and Tutorials.
__________________
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)}); ![]() Last edited by Dan Korn; December 17th, 2021 at 04:08 PM.. |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|