This topic contains 1 reply, has 0 voices, and was last updated by Vesku1980 6 years, 6 months ago.

  • Author
    Posts
  • #17914

    Vesku1980

    Hi,

    How it is possible to create script that prints saved search results to PDF file?

    I have a working advanced pdf template for a wanted search and it works if i press print button on saved search result page.

    Now i have a need to create print with a filter( Invoice internal id) using this same search and template.

    I created an html file to file cabinet from working pdf template, because i don’t know is it possible to load it directly?

    My code :

    Error when executing suitelet script from Custom button :

    {“type”:”error.SuiteScriptError”,”name”:”UNEXPECTE D_ERROR”,”message”:null,”stack”:[“renderXmlToPdf(N/render)”,”onRequest(/SuiteScripts/Greenstep Oy/Charge Attachment to Invoice/gs_slt_print_charges.js:40)”],”cause”:{“type”:”internal error”,”code”:”UNEXPECTED_ERROR”,”details”:null,”u serEvent”:null,”stackTrace”:[“renderXmlToPdf(N/render)”,”onRequest(/SuiteScripts/Greenstep Oy/Charge Attachment to Invoice/gs_slt_print_charges.js:40)”],”notifyOff”:false},”id”:”6845c0d3-38ba-4894-8371-cf518c45ca9e-2d323031382e30342e3234″,”notifyOff”:false}

    Anyone ?

    Vesku

    Attached Files
    This is a cached copy. Click here to see the original post.

  • #17915

    Vesku1980

    Problem was in pdf template…

    this works with code above :

    #if>

    ${result.chargedate}

    #list>

You must be logged in to reply to this topic.