简体   繁体   English

Adobe Livecycle JavaScript获取属性节点

[英]Adobe Livecycle javascript get attribute node

I have a PDF template that I am designing in Livecycle Designer ES2. 我有一个在Livecycle Designer ES2中设计的PDF模板。 The data binding is XML Schema. 数据绑定是XML模式。 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: 例如:如果我的XML(基于架构)如下:

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

How can I access to the value attribute? 如何访问value属性?

I tried with: 我尝试过:

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

but it don't work. 但这不起作用。

Do you know help me? 你知道帮我吗? Thanks. 谢谢。

通常这应该工作:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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