Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

DDX needs a Map or a List?

Avatar

Level 2

Hello,

I am trying to understand (on my own without having to ask the experts...) how to generate a PDF package in Livecycle when I have a List (or Map, whatever is needed) to use as input.  From the docs, it appears I can pass in a List of PDF "documents".

I have the following DDX:

<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" >
<PDF result="pdfPortfolio">
  <PackageFiles>
   <PDF source="pdfList"/>
  </PackageFiles>
</PDF>
</DDX>

I have the "Input Document Map" set to "variable" with "pdfList" selected.

I get an object coersion exception saying it is expecting a Map, but I tried using a map and I can't get that one right either.

Any help would be appreciated!

2 Replies

Avatar

Level 10

You're close. It's actually not that obvious.

Assembler always requires a map as an input parameter.

If you want to provide a list, you need to provide a map that contain one element, which would be your list.

pdfList should be the name of the key in the map that contains the list, and not the name of the variable.

The name of the variable that contains the map information can be anything.

Jasmin

Avatar

Level 2

Thank you, that was just what I needed!

One other question however.  Now, when I am returning the package file back, it doesn't give me an option under the print menu to print ALL documents in the package at once.  When I create a portfolio using Acrobat 9.x, I can use templates for a nice presentation and I can also select "Print all docs in package" with this portfolio.  I realize that I cannot apply a "template" to a package/portfolio yet with LiveCycle 8.0/8.2, but I should at least be able to print all documents in the package at once.  What am I doing wrong here?