Expand my Community achievements bar.

How do I create a pdf that pulls in event details from a RSS feed.

Avatar

Former Community Member

Hi,

I want to create a pdf that pulls in event details from a RSS feed.  (I’m fairly new to Livecycle Designer ES)

http://www.eventfulreg.com/index.php/feeds/ff3065b338db9a7ccd616911540bdea2

The pdf will have a table with a number of rows containing event details..

Eg.. 

Event,LocationDescriptionDate
Event 1BelfastAn event1 October 2013
Event 2Dublin3 Octover 2013

How can I do this?

Do I need a WSDL file or XSLT or XSD file?

Thank you for your time,

Ollie.

1 Reply

Avatar

Level 10

Hi Ollie,

There is a GET function available in the FormCalc language.  I tend to stick with JavaScript, so use a method of calling FormCalc functions described here, http://blogs.adobe.com/formfeed/2009/02/calling_formcalc_functions_fro.html.

So we can now get the feed, load up our data connection and bind our form fields to it, like;

var feed = FormCalc.Function.Get("http://www.eventfulreg.com/index.php/feeds/ff3065b338db9a7ccd616911540bdea2");

if (feed !== "")

{

    $data.loadXML(feed, true, true)

    xfa.form.remerge();

}

Assuming the binding on your form fields is correct you will get the contents of the feed displayed in your form.  Here is a sample https://workspaces.acrobat.com/?d=iFgpUjUbXk5gobAVWRoBVg.

You might find that Reader throws up some warning messages so it might not be the best user experience.

Hope this helps

Bruce