11 Replies Latest reply on Sep 7, 2017 2:53 PM by nirajd91588134

    Submit form with attachments

    AmbikaM Level 1

      I have to develop a process that submits a form with attachments.
      My question is, can we extract the attachments from the subbmitted form? If yes, in which format the attachments will be extracted?
      If no, how will the form be submitted, can it be converted to xml or will it remain as pdf only?

      I am new to LiveCycle, kindly provide me the suggestions...

      Thanks and Regards,
        • 1. Re: Submit form with attachments
          Jasmin Charbonneau Level 4
          "can we extract the attachments from the submitted form?"

          Yes. Look at the Attachments property of the processFormSubmission operation of the Forms service.

          "If yes, in which format the attachments will be extracted?"

          They will be extracted in a list object of subtype "document". The document object is an Adobe proprietary data type that can contain pretty much anything. In your case it'll most likely contain a byte[] representation of your documents.

          • 2. Re: Submit form with attachments
            AmbikaM Level 1
            Thanks Jasmin. This has helped me a lot...

            There is one more thing, i will like to clear out, can a form submitted with attachments be converted to xml for saving into DB or will it remain in pdf format only?

            Thanks and Regards,
            • 3. Re: Submit form with attachments
              Jasmin Charbonneau Level 4
              Why don't you just save the PDF as a BLOB in the database?

              I don't think going to XML would be the right thing to do.

              • 4. Re: Submit form with attachments
                HowardTreisman Level 1
                Hi Ambika
                Two points:
                1. You can extract the XML from a PDF form. Use the submit operation in the Forms service.
                2. If you're using process management, you can enable a separate tab in Workspace which handles attachments nicely. Usually a better option than trying to embed them in the PDF.
                • 5. Re: Submit form with attachments
                  AmbikaM Level 1
                  Thanks Jasmin n Howard...

                  Howard, can u please let me know which tab handles the attachment, I tried to figure out but was not successful...

                  • 6. Re: Submit form with attachments
                    Jasmin Charbonneau Level 4
                    You need to make sure you enable attachments when you create the Task Manager endpoint in adminui.

                    • 7. Re: Submit form with attachments
                      (Yogesh_Gandhi) Level 1
                      Hi Ambika,

                      I have the following requirement. You seem to be familiar to this and I hope you will be able to help me out.

                      I have a form having a Browse button that gives the user a facility to upload the documents.
                      When he clicks the submit button, the document should go and get stored in the Database, on the server (that can be Documentum or Alfresco).

                      I am just a beginner in this field, so can you please provide me the steps to follow to achieve this. I'll be really thankful to you.

                      My e-mail : yogesh249@gmail.com

                      • 8. Re: Submit form with attachments
                        JoshDBoyle Level 1

                        Within your Assign Task step in Workbench, go into the "Attachments and Notes" section and ensure that "SHow attachment window for this task" is checked should you wish to allow attachment adding. If the user step you're attempting to enable attachments for is actually your TaskManager endpoint, then you need to go into your service within AdminUI where you'll find a checkbox reading something along the lines of "Allow attachment adding".


                        I'm a bit confused as to what you are trying to accomplish. Could you clarify what you would like to do for me?

                        If either of you have questions, please feel free to email me directly!

                        Josh Boyle
                        Cardinal Solutions Group
                        • 9. Re: Submit form with attachments
                          (Yogesh_Gandhi) Level 1
                          Hi Guys,

                          I've made a process that uploads a document into the repository.
                          When in workbench I right click the process and click Invoke process, it gives me the following error.

                          ALC-DSC-005-000: com.adobe.idp.dsc.DSCNotSerializableException: Not Serializable
                          Caused by: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.

                          It worked intermettently, But I am not able to make out how to make it work.

                          Any ideas regarding this would be helpful.

                          You can reply to my e-mail : yogesh249@gmail.com

                          or post your replies here itself.
                          • 10. Re: Submit form with attachments
                            AmbikaM Level 1
                            hi all,
                            im rendering a form through a process(invoking the process through a servlet)... the form will allow the user to attach files. on click of submit button, it calls a servlet. the servlet should check if the form contanins any attachments...if yes it should save the attachments in DB, but when ever i check for attachments in the servlet(console) it says "empty".

                            and whn i try saving the form in a the local drive and open it, it says not of proper format.now whr is the issue in the form or the way i check for attachments.
                            • 11. Re: Submit form with attachments
                              nirajd91588134 Level 1

                              I am using map<document> to receive multiple attachments, which is working fine with the one attachment but when i tried with multiple attachment its only receive one attachment (last attachment from all the attachments) in my workflow process, how can i receive all the attachment in my workflow.