Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
onSaveReport event decides how to store it.def saveReport(args: StiReportEventArgs):
filePath = os.path.normpath(os.getcwd() +
url_for('static', filename='reports/' + args.fileName))
with open(filePath, mode='w', encoding='utf-8') as file:
file.write(json.dumps(args.report, indent=4))
return f'The dashboard was saved to {args.fileName}.'
designer.onSaveReport += saveReportonSaveReport — fires on manual or automatic save; args.report is the edited dashboard, args.fileName its name.json.dumps(args.report) — serialize the dashboard to JSON and write it to disk.