Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Reporting Output Folder Path

  1. #1

    Default Reporting Output Folder Path

    I have a step in a transformation that has a reporting output and I am dynamically creating the file path in the Java Script step which creates the file output based on the year and month. Unfortunately it seems that Report Output does not create the folder path if it does not exist. Is there anyway to fix this or a work around anyone can think of?

  2. #2

    Default

    Turns out that the Javascript step has some functions built in for file management. I did the following code:

    if(!isFolder(myFilePath)){
    createFolder(myFilePath);
    }

    It will also create multiple folders. So if you have "C:\Temp" and you want "C:\Temp\2017\MyReport" it will create both new folders.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.