Highlighted

How to get form field value ? (form type: "Document Form")

Avatar

Guest

12-08-2008

Hi,

I have a "Document Form" variable.

I want to get a field value from my form.

I tried :

/process_data/NameForm/object/@document//txt_Nom

/process_data/NameForm/object/@formUrl//txt_Nom



Any idea?

Thanks.

Replies

Highlighted

Jasmin_Charbonn

12-08-2008

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.



Jasmin
Highlighted

Avatar

Guest

12-08-2008

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.
Highlighted

Jasmin_Charbonn

12-08-2008

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?



Jasmin
Highlighted

Avatar

Guest

13-08-2008

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:000000000000002849444C3A636F6D2F61646F62652F6964702F49446F63756D656E7443616C6C6261636B3A312E30000000000200000000000000E0000102000000000F3137322E33312E3139362E31373100000DC80000000000114A426F73732F0015384923414C0B010A15000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005400000000000000010000000000000024000000220000007E00000000000000010000000F3137322E33312E3139362E31373100000DC90000000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="0" contentType="application/octet-stream" <br />AND MORE<br /><br />Thanks.
Highlighted

Jasmin_Charbonn

13-08-2008

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.



Jasmin
Highlighted

Avatar

Guest

14-08-2008

Hi,

Thanks.

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-server/submit109000POYC6605CARRIEREPIERRES6RROSI/SIS2008-08-152008-08-290010000000000000http://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.
Highlighted

Jasmin_Charbonn

14-08-2008

Why did you put the XML in a xfaForm variable. You can use xPath right off the xml variable you get from Export Data.



Jasmin
Highlighted

Avatar

Guest

04-09-2008

hi Siham Aboumadi,



we have same problem.

we can not access signated PDF data.

fields returns "space".

we linked the our process lca file:



http://www.medyasoft.com.tr/NewArchive-04-09-2008-1706.zip



how did you resolve the problem?

May you send me a sample application "lca"?



I hope you feedback to me.



Thank you.



--

Esref Atak

www.medyasoft.com.tr