This content has been marked as final. Show 12 replies
The Document Form variable is not an xml type like xfaForm or xml. You can only use xPath on xml based variable type.
What you need to do is similar to what I've explained in the other post. You need to take the data out of the Document Form using an xPath expression into a xml variable. Then you'll be able to use xPath to get to your data.
Make sure you have xml is the Document Form and not PDF. Otherwise you'll have to get the PDF out of the Document Form variable first, then extract the data, then put it in a xml variable.
I hope that makes sense.
Thanks a lot,
So, I must change the type Document Form in xml type to acces form field value !?
How can I "parse" my "Document Form" type in xml type?
I have tried to put in a xml variable this /process_data/NameForm/object/@document
But it don't work.
Are you sure /process_data/NameForm/object/@document contains xml and not the PDF?
Usually people use a Document Form variable to store PDF and xfaForm variable to store XDP data (xml of the form).
Can you give me a bit more background on how you populate your Document Form variable? Is it pointing to a PDF or an XDP? Which render service are you using?
My Document Form variable is pointing to a file.Pdf.<br />(But with the LC tutoriel a xfaForm variable is pointing to a file.pdf : Mortgage Loan).<br />An other person made a little process(successive signing validation).<br />I want to get a field value from this form (which is associate to a Document form variable). After I call a webservice but I need this field value.<br />I tried with "getFormField","convertPDFtoXDP" activities.<br />In convertPDFtoXDP activity : I create a xfaForm variable an I tried :<br />Input Document : (Xpath expression)<br />/process_data/inPleaseSignHereDocumentForm/object/@document<br />(Document Form)<br />Converted XDP Document : (variable)<br />NameXfa (xfaForm)<br />But exception :<br /><br />Cannot coerce object: <document state="passive" senderVersion="3" persistent="true" senderPersistent="false" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1/172.31.196.171" callbackId="0" senderCallbackId="22" callbackRef="IOR:000000000000002849444C3A636F6D2F61646F62652F6964702F49446F63756D656E7443 616C6C6261636B3A312E30000000000200000000000000E0000102000000000F3137322E33312E3139362E3137 3100000DC80000000000114A426F73732F0015384923414C0B010A150000000000000500000000000000080000 00004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000 210000005400000000000000010000000000000024000000220000007E00000000000000010000000F3137322E 33312E3139362E31373100000DC900000000000000000000000000000000000000000000000000000000000000 00002000000004000000000000001F000000040000000300000001000000200000000000000002000000200000 0004000000000000001F0000000400000003" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="0" contentType="application/octet-stream" <br />AND MORE<br /><br />Thanks.
So your Document Form variable is pointing to a PDF and the submit button on the form is probably submitting PDF.
The Document Form/object/document probably contains PDF and not the xml data. You can double check the submit button on the form to see what it submits.
Now, you can extract the PDF and put it in a document variable and then use the Form Data Integration module to extract the data (under Common).
Then put the result in an XML.
I tried to use "export data" activity.
Input : /process_data/FormName/object/@document
Output : a "xml" type variable
I tried to affect this xml variable to /process_data/xfaName/object/data. (no exception but when I search my field value /process_data/xfaName/object/data/xdp/datasets/data/FSFIELDS_/__fieldnode__//Namefield nothing)
When I send an email with xml variable I have :
8359B59F1DA-68EF-CEB2-D6DF-427F3F61394Eadmin@company.comhttp://item-55667:8080/workspace-s erver/submit109000POYC6605CARRIEREPIERRES6RROSI/SIS2008-08-152008-08-290010000000000000htt p://item-55667:8080/workspace-server/submit
We found CARRIERE,PIERRE (user field) and date 2008-08-15,2008-08-29 and others fields but this is not a xml type.
Why did you put the XML in a xfaForm variable. You can use xPath right off the xml variable you get from Export Data.
You are right !!
Thanks a lot.
hi Siham Aboumadi,
we have same problem.
we can not access signated PDF data.
fields returns "space".
we linked the our process lca file:
how did you resolve the problem?
May you send me a sample application "lca"?
I hope you feedback to me.
The signature field dat is not carried in the submitted XML. So you cannot XPath to it and get a value for it. There are server side calls in Security Server (part of LiveCycle) that will get information about the signature (and you will have to submit the whole PDF to get the signature bits out of it)
Thank you for your response. But, our problem about to access to the datas in the fields on the PDF form. Like, name, surname, sex etc.
There is no problem when we log the data. Data shown in log file (name, surname, sex etc).
But, columns shown as empty in database, when we use JDBC service.
Where is the problem?
A document form variable is not XML so you cannot use xpath on it. xpath will only work on xml.
How did you create the document form variable?