1 Reply Latest reply: Oct 31, 2014 7:00 AM by AlbertoAT RSS

    Blank fields unless click.

    AlbertoAT Community Member

      Hello!

      I created a form with the adobelivecycle workbench embedded into SAP. This form contains a server signature.

      When I generate a PDF archive without signature, all works OK. But when I include the code for generate PDF with server signature, content fields has disappear unless you click into the field.

      In my case, I generate 6 different Adobe forms. Five works fine but one of them has this fail. For all, signature process is the same.

       

      Signature code:

      Downloading l_pdf content, works fine, but downloading l_out not work.

      TRY.

             l_pdfobj = l_fp->create_pdf_object( connection = 'ADS' ).

             CALL METHOD l_pdfobj->set_document
               EXPORTING
                 pdfdata = l_pdf.   " Here l_pdf is the PDF we just created

             CALL METHOD l_pdfobj->set_signature
               EXPORTING
                 keyname   = 'ServerSignature'      "Hace referencia al certificado
                 fieldname = 'data[0].Pagina1[0].CampoFirma2[0]'     "Campo de firmfirma
      *         reason    =
      *         location  =
      *         contactinfo =
               .
      *    ADS call
             CALL METHOD l_pdfobj->execute( ).

      *   Signed pdf
             CALL METHOD l_pdfobj->get_document
               IMPORTING
                 pdfdata = l_out.

           CATCH cx_fp_runtime_internal INTO l_fpex.

           CATCH cx_fp_runtime_system INTO l_fpex.

           CATCH cx_fp_runtime_usage INTO l_fpex.

         ENDTRY.

       

       

       

      Thanks.

        • 1. Re: Blank fields unless click.
          AlbertoAT Community Member

          I have solved the issue.

           

          In a initalize event for a group of fileds I have forced to "open" the Access property.

           

          The code.

           

          data.Pagina1.CamposCabecera::initialize - (JavaScript, client)   // Event modified.

           

          this.access = "open";

           

           

          Strange solution, but works.