Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

LiveCycle refuses to link web-based Xml as datasource?

Avatar

Former Community Member

Hello All,

I have an issue with populating my dropdown list through xml. Here's what I have done:

1) Wrote a .xsd file

2) Wrote a .xml file

2) Set up the Xml Data Connection to target my xsd, embed the Xsd

3) Went to "Form Properties > Preview > Data File", set link there as http://exampleHost/exampleXml.xml (It wont work)

The objective is get the Pdf dropdown field to: Target a global xml - Which can be updated when needed.

It seems that it would only accept a Local XML datalist - Which defeats the purpose of this project.

*I cant use the OLEDB connection due to functional requirements.

*I have tried WSDL but it's really too complex for my profession - I work as a graphic designer (Don't ask why I'm coding this Pdf.. lol)

XML Source:

<?templateDesigner DefaultPreviewDataFileName ..\product_list.xml?>

Does anyone know a tag; To make it grab my product_list.xml off a webserver instead of local?

I have Googled/Readup/Researched as much as possible and I am at my wits end trying to solve this issue.

Deadline is today and I have been banging my head against the dryer in the toilet.

ANY help would be appreciated please. :/

Thanks!

(Ps: Here's a nice link with some form tuitorials - Doesnt solve my problem but may help others - http://it.toolbox.com/blogs/enterprise-modeling/dynamic-dropdown-lists-in-adobe-livecycle-designer-3...)

3 Replies

Avatar

Level 10

I put in a sample file for you..

https://acrobat.com/#d=9iioBoSGSb77SxNgwkrHOA

I am using the XML from http://www.w3schools.com/XML/note.xml as my data connection as well as Data Source in the Preview.

Hope this gives an idea.. In the Data connection you either use the XML from the web or similar XML from local (or) use XSD.

I added a dropdown field in the form "To" which will get values from the web XML..

Thanks

Srini

Avatar

Former Community Member

Good Day Srini,

Thank you for your reply and your PDF - It is a big relief in some ways.

Your statement provides the idea and supports what I have thought out too. Thanks again! (:

I downloaded the file, opened it in LiveCycle Designer - Looked at the way you made your XML data connection.

Eg:

1) Under preivew data, you have set a connection to http://www.w3schools.com/XML/note.xml

2) Inside the Xml Source, I noticed another set data connection to the same url.

3) Saw your bindings

4) Saw your Xml version

5) Saw Pdf version and static/dynamic type

It all makes sense - However, when I load your PDF in Designer - It still keeps returning "Sample data file could not be found".

I tested in Acrobat Reader and Acrobat Pro - The drop down field has no data either.

So I was thinking it may be my Network's issue since you can get it working.

I ran a test at home and at the office. The test results at both places were still negative.

What do you think? I feel as though I have missed out a hidden key point.

Thank you!

Avatar

Level 10

Hi,

   When you opened the file ion Acrobat Reader/ Pro you did not see any data because the form was not rendered. Means at time of opening the form the XML file was not passed to it to display the data. But in the Designer you have an option to pass the text XML to preview your changes. So it should display data from the XML, in the Designer preview but not in the Acrobat Reader/ Pro. To display data from the XML in the PDF, you need to pass the XML at the time of rendering the PDF using the ES Server components (Attached is a sample file for your reference which I rendered from the server).

https://acrobat.com/#d=CHOp080Kd3z3HdxoVcrWDw

You can test your network issue by placing the URL (http://www.w3schools.com/XML/note.xml) directly in the browser and see if you can get the XML displayed.

You need to set your form as Dynamic form..

1) Goto File menu -> Form Properties and select Defaults tab. Change the Default Render Format as Dynamic XML form

2) Select the Preview Tab. Set the Preview type as "Interactive Form" and Preview Adobe XML form as Dynamic XML form

3) Finally while saving the PDF select Save As Type as "Adobe Dynamic XML Form".

Thanks

Srini