简体   繁体   中英

Adobe Livecycle javascript get attribute node

I have a PDF template that I am designing in Livecycle Designer ES2. The data binding is XML Schema. For one of the fields I need to bind the data with some formatting. For example: If my XML (based on the schema) is as follows:

<formElement xmlns:ns2="http://it.anas.pdm/anaspcm">
    <elementNode value="FCON" />
</formElement>

How can I access to the value attribute?

I tried with:

xfa.data.formElement.elementNode.getAttribute("value");

but it don't work.

Do you know help me? Thanks.

通常这应该工作:

xfa.resolveNode("formElement.elementNode.value")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM