Expand my Community achievements bar.

SOLVED

Blank fields unless click.

Avatar

Former 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 Accepted Solution

Avatar

Correct answer by
Former 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.

View solution in original post

1 Reply

Avatar

Correct answer by
Former 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.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----