LiveCycle & Tutorials 21 May 2007 05:06 pm
Building a web service enabled PDF form in 30 seconds
As promised, here is a brand new tutorial on Livecycle Designer. Acrobat and Designer both have native support for SOAP, perfect for your typical enterprise SOA infrastructure. This tutorial shows you how easy it is to consume web services from a PDF form.
P.S., Captivate refused to record my voice narration when running in Vista. I put some captions in there to guide you through, but you have to read fast
Update: Stefan just posted a tutorial on PDF web service as well. Great minds think alike.
Need to bring your Flex project up to speed? Zee Yang is a freelance Flex developer with deep understanding of architecture and user experience. You can reach him at zee.yang@gmail.com.

on 24 May 2007 at 3:12 pm 1.Stefan Cameron on Forms » Blog Archive » Connecting to a Web Service said …
[...] Update (May 24, 2007): My colleague Zee from flexlive.net has posted a video tutorial on connecting a form to a web service. If you’re looking for something with more context, you might what to try that since you get to see the actual steps in Designer which I’m attempting to describe. [...]
on 21 Jun 2007 at 8:35 am 2.Pete Smith said …
Nice to see a clear demo like this.
But I’m interested in doing something similar, but for populating a dropdown control at the point the PDF is loaded/rendered/displayed.
I want data from my database, “exposed” via a webservice, to appear as items in a dropdown control on the PDF.
How is this done? I’ve tried all sorts of things including steps similar to the ones you perform in your demo, but haven’t got anything to work.
Please help – a video tutorial on this would be fantastic.
on 16 Jul 2007 at 7:19 am 3.Greg Blodgett said …
Not sure where to post this on this site so figured this looked best. I am trying to follow a tutorial you had posted a while back and cannot get it to work.
Basically I need someone to choose a value from a drop down list (which is pulling from an oracle db). Then based on that drop down I want it to populate other fields on the screen. Right now I have 2 fields on the screen ZZ_CODE and ZZ_DESC. When they choose ZZ_CODE I want it to populate ZZ_DESC.
Here is my script:
—– form1.#subform[0].Body.ZZ_CODE::change: – (FormCalc, client) ———————————
var sCODE = xfa.event.newText
var sZZ_CODE = $.boundItem(sCODE)
var oDataConn = Ref(xfa.sourceSet.AbraData)
oDataConn.#command.query.commandType=“text”
oDataConn.#command.query.select = Concat(“Select distinct ZZ_DESC from PS_ZZ_HRTABLES Where ZZ_CODE = “, sZZ_CODE,””)
oDataConn.open()
oDataConn.first()
AbraSub.presence=”visible”
AbraSub.ZZ_DESC = sCODE
I get an Script Failed error – Error: syntax error near token ”
If I can get this working I would then like to be able to take multiple fields into my where clause to populate the other fields on the form. For example, i will have a country code and a state code which will drive combined the data that shows on the form. So where clause like so ” Where state = “, sZZ_State,” and country = “,sZZ_COUNT,””)
Any help would be greatly appreciated. In fact I could even fax you a beer!
on 02 Oct 2007 at 8:38 pm 4.ngjiajun said …
hi Flex,
i have see your video, thanks for teaching how to bulid a webservice PDF but your web service only will retrieve one value only.. wonder it there is another tutorial about retrieve arraylist and etc, that mean multiple value….
example is the pdf, user must enter his username…
once the username is enter it will get from webservice and retrive his name, address, phone number and etc into different field.
wonder could you help me out or give me some advice
on 07 Feb 2008 at 2:47 am 5.ali raza said …
very helpful article
thanks a lot
keep it up
on 13 Jul 2008 at 1:29 am 6.Mal said …
Z-
Wish I had seen your tutorial earlier. Have been “volunteered” to create a dynamic form for the web, but I am NOT an IT staffer. Just got picked b/c I pick up apps quickly.
I’ve figured out the basics of LiveCycle Designer on my own & with JP Terry’s book…but he’s not much help for beginners with scripting.
I have radio buttons and I need to hide or display subforms as a result of the radio button chosen. Have any advice? Book skims it, but I need a step by step like your tutorial.
Help for the frustrated new girl?
Mallee
on 29 Jul 2008 at 4:11 pm 7.Brian said …
The video link you have posted doesn’t work for me. I have acrobat 8.0 professional and I get an
“error attempting to open file”
message when I try to connect to a webservice. Do you have any idea what this could be?
on 25 May 2009 at 3:03 am 8.HjSkirl said …
How can I save a fillable PDF form, shown in a browser, into a database via webservice or another way ?. How looks the webservice for all fields of the form. Is there an example I can use or modify?