Import/Export xml data from subtree of dynamic XFA form


hi

 

we import/export xml data (subtree) of dynamic xfa form. following script work static acroforms:

 

formular.content.subformdaten.button1[1]::click - (javascript, client)

event.target.exportasxfdf({afields:["formular[0].content[0].subformdaten[0]"]});

 

with dynamic forms script export empty xml file (no data included, xml root tag):

 

<?xml version="1.0" encoding="utf-8"?>

<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"

><f href="exporttest_frei.pdf"

/><ids original="ea43f92a6b6ea34f9c4dbbc2da0b1840" modified="6a7c6282a167594f91240b773aa979a7"

/></xfdf

>

 

any ideas? many thanks.

 

best regards,

daniel

you shoudl not using xfdf formats xfa form. can use command xfa.host.exportdata("", false). bring dialog , allow user choose file name of xml file want. if woudl rather stick command format have use event.target.exportxfadata instead.

 

paul



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???