English 中文(简体)
如何将XML装入动态的PDF表格(LiveCycle)的装货数据集?
原标题:How to load XML into datasets on load in a dynamic PDF form (LiveCycle)?

我需要先填充有活力的国防军田地,以便我的用户能够把它ed起来,回来。

我正在使用Adobe Yongsion CFPDFFORM tag,把XML数据装入人民抵抗力量,并使其成为新的人口稠密的国防军。 不幸的是,它也明确了<xfa:datasets>tag,它完全避开了! 因此,所有受数据集约束的退学者都无法工作。 这是其中一项具有约束力的法典:

<bindItems ref="xfa.datasets.LOVFile.LOV.PreferenceLanguageList.PreferenceLanguage[*]" labelRef="$" valueRef="lic"/>

自2006年以来 我对CFPDFFORM tag如何工作没有控制权,我来的是工作。 利用活体设计器进行涂.,我储存了<xfa:datasets>上的任何数据,并装入数据集:初始。

This seems to load datasets fine, just like how they were before cfpdform messed them up. After loadXML() call , I can read the datasets and get identical results as in the original PDF with its datasets tag full of XML data.

form1::initialize - (JavaScript, client)
//xfa.host.messageBox("loading xml to datasets");
xfa.datasets.nodes.namedItem("LOVFile").loadXML(LOVFile_var.value,0,1);
Page1.Header.debug.rawValue = xfa.datasets.LOVFile.LOV.PreferenceLanguageList.resolveNode("PreferenceLanguage[2]").value;

问题列在名单上,仍然没有工作,他们没有任何东西可以显示。 他们对数据集的约束力呼吁没有更新吗?

在装载XML(ML)之后,我是否应当做任何事情。 ? 现场参考bindItems称“ 清单项目与参考数据之间的联系十分活跃。 对数据的任何改动都导致立即更新清单项目。

任何帮助或指向正确方向都受到高度赞赏。

<><>UPDATE:

我可以使用新装数据集的数据(在装载Xml(电话)之后)在下游名单上添加项目。

var oEyeColors = xfa.datasets.LOVFile.LOV.resolveNode("EyeColorList");
var numberOfNodes = oEyeColors.nodes.length;       

var thisValue = "";

for (var i=0; i < numberOfNodes ; i++){
    thisValue  = oEyeColors.nodes.item(i).value;
    if(thisValue == null){
        thisValue = "";
    }
    xfa.resolveNode("Page1.eyeColorDropDownList").addItem(thisValue.toString());

}

这是我所寻求的解决办法。 必须用 Java本来确定降幅的束缚。

问题回答

我是你在本法典中具体说明的:

xfa.datasets.loadXML(LOVFile_var.rawValue, false, false); 
xfa.datasets.saveXML();                                 
var yourXML = xfa.datasets.resolveNode("yourXMLRootNodeName");
var numberOfNodes = yourXML.nodes.length;       

for (var i=0; i < numberOfNodes ; i++)
    yourDropDown.addItem(yourXML.nodes.item(i).nodes.item(1).value); // this can change according to what you retrieve in your xml  

替你工作

或许这是你回想的吗?

Pre-populating dropdown lists in dynamic PDF forms from a back-end data source using LiveCycle ES2.5





相关问题
How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Extract everything from PDF [closed]

Looking for solution to extract content from a PDF file (using console tool or a library). It will be used on server to produce on-line e-books from uploaded PDF files. Need to extract following ...

PDF compression How does Adobe do it?

This is a bit more of a fun question than a serious one, but how does the Adobe PDF format make documents so... portable? I just created a small Word document, 235kb in size, containing multiple ...

Exporting HTML Tables

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))

Using Java PDFBox library to write Russian PDF

I am using a Java library called PDFBox trying to write text to a PDF. It works perfect for English text, but when i tried to write Russian text inside the PDF the letters appeared so strange. It ...

HTML --> PDF with PHP [duplicate]

Possible Duplicate: Convert HTML + CSS to PDF with PHP? How can I convert an HTML page (via $cURL or something) to a PDF file?

Free way to convert PDF to XPS with C#

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I m not opposed to shelling out to a command line tool to do ...

PDF conversion service

I need to develop a service able to convert MS Office and Open Office documents to PDF. And the PDF`s also need to be commentable when opened in ADOBE Reader. I have used a piece of software from www....