Access data of LiveCycle forms with dynamic controls

Greetings,

We are developing an application that is using LiveCycle dynamic forms that creates new instances of controls on the form. What is the method I should use to both populate and collect the data from the form? I tried importing and exporting using XML but importing did not work. I was using the same XML that was exported when I tried which did not match the format in the demo. I am looking for what is the best practice.

Thanks

Hi David,

Please go through our documentation section related to the PDF Form filling and data import and export features on this link. If you still need any further assistance or find any issues, please do let us know. In case, you encounter any problem, please share the input PDF file along with the code snippet you’re using at your end, so we could test it over here.

We’re sorry for the inconvenience.
Regards,

I have read through most of this documentation but I still wasn’t sure how it was supposed to behave. Could you send me a link to the document that describes the structure of the XML for both import and export of LiveCycle forms? Are both XML documents supposed to be identical? I am trying to determine if I have a bug of if I am not coding it correctly.

Thanks

Hi David,

Please have a look at this topic to get some idea regarding the structure of the XML file for importing data. However, it is better to first export the XML to get the correct format of the XML structure before importing the data through the import XML mechanism; the XML structure and field’s naming conventions may vary due to the structure of the PDF file. If this doesn’t help either in your scenario then please share the sample PDF file with us, so we could test the issue over here. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,

When I use LiveCycle designer to preview the data I get one XML structure like:

<?xml version="1.0" encoding="UTF-8"?>
<topmostSubform>
   <Artifact/>
   <P/>
   <P/>
   <Span/>
   <P/>
   <P/>
   <P/>

When I use ExportXML on my form I get another structure like:

<?xml version="1.0" encoding="UTF-8"?>
<xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
><topmostSubform
><Artifact xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup"
/><P xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup"
/><P xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup"
/><Span xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup"
/><P xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup"
/><P xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:dataNode="dataGroup"
/>

And your help documentation has yet another format:

<?xml version="1.0" ?>
<fields>
<field name="Company"> 
<value>Aspose.com</value>
</field>
  <field 
name="Address.1">
    <value>Sydney, 
Australia</value>
  </field>
  <field 
name="Address.2">
    <value>Additional 
Address Line</value>
  </field>
</fields>

I am using ExportXML and ImportXML on my form template to collect and populate the data and I have not been able to get the data to populate. I have included my PDF for you to test.

Thanks

Hi David,

I’m also unable to import the XML data into the PDF file. In fact, I exported the XML, filled some data in the generated output structure and then tried to import this updated XML, however, it didn’t work. I have logged this issue as PDFKITNET-22300 in our issue tracking system. Our team will further investigate this issue in detail and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,

Has there been any progress on this issue. We are now looking to begin development and I do not know of a way to populate data on a LiveCycle form using XML. Is there a known method or work around? I need to know if we need to use another library for the project.

Thanks

Hi David,

I’m sorry to inform you that this issue is not yet resolved. However, I’ll contact our development team for the ETA of this issue and you’ll be updated the earliest possible.

We’re sorry for the inconvenience.
Regards,

Hi David,

Our team is looking into this issue, however I’m afraid, we’ll be able to provide the resolution for this issue after Q2’2011.

We’re sorry for the inconvenience.
Regards,

The issues you have found earlier (filed as 22300) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.