Yes, it is possible to generate an Excel file from a report in Jedox Designer and have it automatically saved. Jedox provides several methods to automate this process, depending on your specific requirements and setup. Below are the key approaches:
1. Using Jedox Scheduler (Built-in Automation)
Jedox includes a Scheduler tool in its web interface that allows you to automate report exports to Excel at scheduled intervals. This is the most straightforward method for automated saving.
Steps:
-
Create or Modify the Report in Jedox Web or Designer:
- Design your report in Jedox Web or Jedox Excel Add-in (Designer).
- Ensure the report is saved in the Jedox repository (e.g., as a Report or Workbook).
-
Configure the Scheduler:
- Go to Jedox Web > Administration > Scheduler.
- Click New Task and select Export Report as the task type.
- Configure the task settings:
- Report: Choose the report you want to export.
- Format: Select Excel (.xlsx) or another format.
- Save Location: Specify the target file path (e.g., a network drive or local directory).
- Schedule: Set the frequency (e.g., daily, hourly).
- Save and activate the task.
-
Automated Execution:
- The scheduler will run the task at the specified intervals, exporting the report to Excel and saving it automatically.
2. Using the Jedox REST API
If you need more customization or integration with external systems, you can use the Jedox REST API to programmatically export reports and save them as Excel files. This requires scripting (e.g., Python, PowerShell).
Example Workflow:
- Retrieve Report Data via API:
- Use the API endpoint to fetch the report data (e.g.,
GET /api/v1/export/report).
- Process and Save as Excel:
- Convert the data into Excel format using libraries like
pandas (Python) or EPPlus (.NET).
- Schedule the Script:
- Use Windows Task Scheduler (Windows) or cron jobs (Linux/macOS) to run the script at intervals.
Sample Python Code Snippet:
import requests
import pandas as pd
# Authentication (replace with your credentials)
url = "http://your-jedox-server/api/v1/export/report"
headers = {
"Authorization": "Basic base64_encoded_username_password",
"Content-Type": "application/json"
}
# Define parameters (e.g., report ID, format)
payload = {
"report_id": "your_report_id",
"format": "xlsx"
}
# Download the report
response = requests.post(url, headers=headers, json=payload)
with open("output.xlsx", "wb") as f:
f.write(response.content)
3. Using Excel Add-in Automation with VBA/macros
If the report is designed in the Jedox Excel Add-in (Designer), you can automate the process using VBA macros combined with task scheduling.
Steps:
- Create a VBA Macro:
- Schedule the Macro:
- Use Windows Task Scheduler to run Excel in the background and execute the macro at set intervals.
4. Using Jedox OData and External Tools
If the report data is exposed via OData, you can:
- Connect to the OData feed in Excel.
- Use Power Query (Get Data) to refresh and save the file.
- Automate this with Excel's Power Query refresh and task scheduling.
Key Considerations:
- Permissions: Ensure the Jedox user account has permissions to access the report and write to the target directory.
- File Paths: Use absolute paths for saving files (e.g.,
\\server\share\reports\report.xlsx).
- Error Handling: Implement logging or alerts for failed exports.
- Performance: Large reports may require optimization (e.g., reducing data volume or adjusting scheduling intervals).
Which Method to Choose?
- For simplicity: Use the Jedox Scheduler (no coding required).
- For customization: Use the REST API or VBA.
- For integration: Use OData with Power Query.
Let me know if you need help implementing any of these methods!