Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Trying to import XML into PDF subform

$
0
0

I have a very large form where the first page is pre-populated with data from a livecycle service, but then the users want to import an xml file to populate the data in the rest of the form.  If I use the xfa.host.importData() it imports the xml but overwrites all the pre-populated data.  If there is a default value specified for a field, it resets it to the default value.

 

Is there a way to control which part of the form is updated by the import?  Or is there a way to protect the pre-populated data so that it is not overwritten?  I have tried setting the fields as protected, readOnly, nonInteractive, etc. but it doesn't seem to matter.  I also thought about trying to dynamically set the defaultValue properties but this doesn't appear to be supported.

 

I've looked at the loadXML method as well, but not sure how to implement - or if that is even a feasible option with this use case. 

 

I'm sure it can be accomplished if we write a script to parse the xml data manually into each field, but there are several hundred fields so I'm hoping there's a better way... Any suggestions?

 

Thanks!


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>