


Hello everybody,
Question, How I can load the external xml file data in the form.
For examle I have owned a dropdown list box that contains the following give: A, B, C.
And then I have fields in my form: TextField1, TextField2,textField3.
By changing event dropdownlist box I must load the xml dynamically:
http://mywebsite.com/userdata/myxml-A.xml
or
http://mywebsite.com/userdata/myxml-B.xml
or
http://mywebsite.com/userdata/myxml-C.xml
The XML file is loaded in the fields fill in the form:
for example:
textField1.rawValue = C.textForField1
textField2.rawValue = C.textForField2
textField3.rawValue = C.textForField3
Does anyone could give me an example how I shouldproceed?
Thank you in advance.
Views
Replies
Sign in to like this content
Total Likes
This sounds like a Flex question rather than Data Services. Try reposting on the Flex forums.
Views
Replies
Sign in to like this content
Total Likes
No, I need to do this with in pdf Ineractive Form.
I think it possible.
Here is my scipt // don't work
----------
Projects.Page1.lstProjects::change - (JavaScript, client)
var xmlURL = "http://www.mywebsite.com/userdata/myXML-"+xfa.event.newText+".xml";
app.alert(xmlURL); //work, response : http://www.mywebsite.com/userdata/myXML-A.xml";
xfa.datasets.loadXML(xmlURL, false, false);
xfa.datasets.saveXML();
var projectXML=xfa.datasets.resolveNode("Project");
app.alert(projectXML); // don't work
var numberOfNodes = projectXML.nodes.length;
app.alert(numberOfNodes); //don't work
------------
Here is the structure of myXML file (myXML-A.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM ".dtd/project.dtd">
<Project>
<OfficialNumber>001</OfficialNumber>
<Title>Title of my test project</Title>
<DateReceived showFormat="YYYY-MM-DD" defaultFormat="YYYY-MM-DD">2011-06-30</DateReceived>
<TypeOfProject>Type1</TypeOfProject>
<Organisation>Organisation1</Organisation>
</Project>
Views
Replies
Sign in to like this content
Total Likes
Sorry for the confusion. I thought you were working with a Flex form.
This forum is for Data Services, which is a server product with client APIs that are primarily Flex/ActionScript APIs.
I think the forum you want for PDF forms is this one:
http://forums.adobe.com/community/livecycle/livecycle_es/forms_es
There are other PDF-related forums here:
Views
Replies
Sign in to like this content
Total Likes
Thank you Mike, I posted my question in suggested forum.
Views
Replies
Sign in to like this content
Total Likes