Announcement

Collapse
No announcement yet.

need help to pdf code genreration

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • need help to pdf code genreration

    hello i am a newbe to espo i try to save a project started by an other dev ...
    i need to understand this code that create and integrate pdf in a field
    Code:
    // pdfPieceId = ext\pdf\generate('Invoice', entity\attribute('id'), '61ba033fb7e940eab', 'FactureConvention.pdf');
    
    $nomPdf = string\concatenate(number, "-Convention_Journees_",participant.name,".pdf");
    
    pdfPieceId = ext\pdf\generate('Invoice', entity\attribute('id'), '61ba033fb7e940eab', $nomPdf);
    
    name = string\concatenate(number, "- Facture Convention : ",participant.name);‚Äč
    after generation process i didn't find pdf in related field
    workflow is ok
    if i undesrtand to create a pdf with name and add pdf in field ... but how i can found field id to check if all is good ?

    Code:
    pdfPieceId = ext\pdf\generate('Invoice', entity\attribute('id'), '61ba033fb7e940eab', $nomPdf);
    thank for explain

  • #2
    when you generate a pdf it returns the pdfId in you case pdfPieceId is the id returned once the file is generated. so you can check if the pdfPieceId.

    Comment


    • #3
      but how i can check the field how the pdf was insert ?
      if i check code that
      entity\attribute('id'), '61ba033fb7e940eab'
      => how can find this id ?

      Comment


      • #4
        hello and happy new year
        some can help me ?

        Comment


        • #5
          This is not possible to understand without knowing your app.

          Comment


          • #6
            hello what do you need ? workflow printscreen ?

            Comment

            Working...
            X