12 Replies Latest reply on Sep 5, 2008 12:59 PM by pguerett

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

    Level 1
      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.
        • 1. Re: How to get form field value ? (form type: "Document Form")
          Jasmin Charbonneau Level 4
          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
          • 2. Re: How to get form field value ? (form type: "Document Form")
            Level 1
            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.
            • 3. Re: How to get form field value ? (form type: "Document Form")
              Jasmin Charbonneau Level 4
              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
              • 4. Re: How to get form field value ? (form type: "Document Form")
                Level 1
                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.
                • 5. Re: How to get form field value ? (form type: "Document Form")
                  Jasmin Charbonneau Level 4
                  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
                  • 6. Re: How to get form field value ? (form type: "Document Form")
                    Level 1
                    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-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.
                    • 7. Re: How to get form field value ? (form type: "Document Form")
                      Jasmin Charbonneau Level 4
                      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
                      • 8. Re: How to get form field value ? (form type: "Document Form")
                        Level 1
                        So,
                        You are right !!
                        /process_data/MyXml//NameField
                        It works.
                        Thanks a lot.
                        • 9. Re: How to get form field value ? (form type: "Document Form")
                          Level 1
                          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
                          • 10. Re: How to get form field value ? (form type: "Document Form")
                            pguerett Level 6
                            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)
                            • 11. Re: How to get form field value ? (form type: "Document Form")
                              Level 1
                              Hi Paul,

                              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?

                              Thank you,
                              • 12. Re: How to get form field value ? (form type: "Document Form")
                                pguerett Level 6
                                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?