download excel report from temporary community document folder to local drive

Hi ,

We have created a process model which will extract the report from querydatabase and export it to excel and save it under temporary document folder in community section.

We need to add this to report tab in tempo page as XYZ Report. Users needs to click on XYZ Report and the excel generated report could be downloadable and save this to local drive.

Could anyone help us and let us know how to do it.

Attached the process model.


OriginalPostID-255357



  Discussion posts and replies are publicly visible

Parents
  • Thanks george. I have followed up the same process but still I am getting 500 error when I click on the download link. In the background the process run successfully and process variable values are showing correctly. Please note the attached screenshots.

    This is what I am getting in the application.log

    "2017-01-10 04:45:52,529 [http-/0.0.0.0:8080-8] ERROR com.appiancorp.ps.exceltools.util.ExcelHelperUtils - There is a fieldname mismatch between field(s) in the expression and those in the datasubset on - WorkFlowName
    2017-01-10 04:45:52,530 [http-/0.0.0.0:8080-8] ERROR com.appiancorp.ps.exceltools.servlet.ExportDataSubsetToExcelFromProcessServlet - There is a fieldname mismatch between those specified in the expression, and those in the datasubset.
    java.lang.IllegalStateException: There is a fieldname mismatch between those specified in the expression, and those in the datasubset.
              at com.appiancorp.ps.exceltools.util.ExcelHelperUtils.convertDataToExcel(ExcelHelperUtils.java:141)
              at com.appiancorp.ps.exceltools.util.ExcelHelperUtils.convertDataToExcel(ExcelHelperUtils.java:93)
              at com.appiancorp.ps.exceltools.servlet.ExportDataSubsetToExcelFromProcessServlet.doGet(ExportDataSubsetToExcelFromProcessServlet.java:99)"


    Download option is also not coming getting 500 errror.







Reply
  • Thanks george. I have followed up the same process but still I am getting 500 error when I click on the download link. In the background the process run successfully and process variable values are showing correctly. Please note the attached screenshots.

    This is what I am getting in the application.log

    "2017-01-10 04:45:52,529 [http-/0.0.0.0:8080-8] ERROR com.appiancorp.ps.exceltools.util.ExcelHelperUtils - There is a fieldname mismatch between field(s) in the expression and those in the datasubset on - WorkFlowName
    2017-01-10 04:45:52,530 [http-/0.0.0.0:8080-8] ERROR com.appiancorp.ps.exceltools.servlet.ExportDataSubsetToExcelFromProcessServlet - There is a fieldname mismatch between those specified in the expression, and those in the datasubset.
    java.lang.IllegalStateException: There is a fieldname mismatch between those specified in the expression, and those in the datasubset.
              at com.appiancorp.ps.exceltools.util.ExcelHelperUtils.convertDataToExcel(ExcelHelperUtils.java:141)
              at com.appiancorp.ps.exceltools.util.ExcelHelperUtils.convertDataToExcel(ExcelHelperUtils.java:93)
              at com.appiancorp.ps.exceltools.servlet.ExportDataSubsetToExcelFromProcessServlet.doGet(ExportDataSubsetToExcelFromProcessServlet.java:99)"


    Download option is also not coming getting 500 errror.







Children
No Data