SAP Knowledge Base Article - Public

3738619 - SAC - ExportToPDF_1.setExportInBackgroundEnabled

Symptom

The script ExportToPDF_1.setExportInBackgroundEnabled(true)  does not trigger background export of the story in SAP Analytics Cloud (SAC) as expected.

Environment

SAP ANALYTICS CLOUD

Reproducing the Issue

1. Create a button in a story then add the following script

   ExportToPDF_1.setExportInBackgroundEnabled(true);
   ExportToPDF_1.exportView();

-> Notice that the export in the background is not generated and the option is greyed out in the ExportToPDF_1 settings

Cause

The behavior is by design

Resolution

Enabling export in the background is currently not supported in ODE. Please refer to the help guide for more details:Use an Export to PDF Technical Object
Additionally, from the scripting parameter "ExportToPDF_1", you can also verify this behavior, as the option is greyed out, indicating that it cannot be triggered.
However, in view mode, you may see the option to enable background export in the story 

See Also

Keywords

SAP Analytics Cloud, SAC, Export to PDF, background export, setExportInBackgroundEnabled, scripting, story, limitation , KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem

Product

SAP Analytics Cloud 1.0