The dashboard designer is hosted the same way as the viewer — create a StiDesigner, load a dashboard, and serve the framework response.

Build the designer in a Flask view.
designer = StiDesigner()

if designer.processRequest(request):
    return designer.getFrameworkResponse()

report = StiReport()
report.loadFile(url_for('static', filename='reports/WebsiteAnalytics.mrt'))
designer.report = report

return designer.getFrameworkResponse()

How it works. The designer runs client-side while Python serves the page and handles its callbacks, so users edit dashboards without a desktop app.

Hallo! Brauchen Sie Hilfe?