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.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.