Forum

Lukas Henninger
Moderator
    Has successfully completed the online course Introduction
    Has successfully completed the online course Intermediate (200)
    Has successfully completed the online course Advanced (300)
    Has successfully completed the online course Basics (100)
    Has successfully completed the online course Advanced (310)
    Has successfully completed the online course Advanced (320)
8 months, 2 weeks ago #55614
Up
2
Down
::

Hi Rafael,

 

I have created a quick setup to create and automatically download a pdf. (See the overview Picture)

First I create the pdf using SF_PDF. After this I wrote a quick CSBO with the following code:

fnSuccess({
dataUrl: oPayload.type + oPayload.base64
});

This was just a helper to create the DataURL from the base64.

After this I added the shape for the BO downloadFile.

There I used a constant for the file name (feel free to use a variable tho) and dragged in a process output shape. There I selected the BO which creates the dataURL and selected the correct parameter.

If you already have a dataurl inside a variable then you can drag in the variable from the left and connect it there.

Alternativly, If you are just looking for a download and don’t mind manual downloads, the PDFViewer Widget offers a download button as well. This is not an automatic download and the user has to actively click it.

There many ways to create dataUrls and add them to the download, so in case this did not help you out, please share more information about your current process/code.

 

Kind Regards

Lukas