Expand my Community achievements bar.

dataObject in pdf form

Avatar

Former Community Member
I'm using adobe designer 7 how to put dataObject in my pdf form ?
3 Replies

Avatar

Former Community Member
Can you elaborate a bit on what you are trying to do?

Avatar

Former Community Member
I want to embed external xml file in dataObject and after that use this dataObject in javascript to read xml's content.

Avatar

Former Community Member
You can import an xml data file (it will exist in the data dom) then you can interogate the Dom by using the expression xfa.data to get to the Dom. For debugging I create a large field (wide and high) then make it multiline then use xfa.data.saveXML("pretty") to put the contents of the Dom into the field so I can see it. Note that you can navigate into particular nodes of the Dom by naming them and then use the value property to get its setting. For example xfa.data.rootnode.node1.node.value