CFPDFFORM removes all datasets from source PDF during populate! What to do?

271 Views Asked by At

I have a LiveCycle Dynamic PDF form that has lots of datasets where basic information are stored to feed dropdown fields. Here is an excerpt of its XML source:

<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
   <MyDataForDropDowns>
         <Languages>
            <Language id=""/>
            <Language id="1">English</Language>
            <Language id="2">French</Language>
            <Language id="3">German</Language>
         </Languages>
   </MyDataForDropDowns>
<xfa:data xfa:dataNode="dataGroup"/>
</xfa:datasets>
...
</xdp:xdp>

I use cfpdfform to pre-fill this pdf form:

<cfpdfform source="pdf/FormA.pdf" 
               action="populate"  
               overwritedata="true"
               xmldata="#xmlStringFormData#">

</cfpdfform>

Form loads up and none of my dropdown fields binded to datasets work! Guess what, cfpdfform removed all my datasets. Opening the pdf sent by cfpfdform in Livecycle shows this:

...
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">  
   <xfa:data xfa:dataNode="dataGroup"/>
</xfa:datasets>
...
</xdp:xdp>

Does anyone know what is going on???

Is there anyway around this?

1

There are 1 best solutions below

2
On

It seems as though you are missing your destination attribute, or was this simply an omission?