Editing a Report Template in the Designer
Our sample projects and report templates can help you learn the basics of working with our products.The report designer is hosted the same way as the viewer — create a
Build the designer in a Flask view.
How it works. The designer runs client-side while Python serves the page and handles its callbacks, so users edit templates without a desktop app.
StiDesigner, load a template, 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/SimpleList.mrt'))
designer.report = report
return designer.getFrameworkResponse()StiDesigner()— the designer component;processRequest/getFrameworkResponsework exactly as for the viewer.designer.report = report— the template the user will edit in the browser.
How it works. The designer runs client-side while Python serves the page and handles its callbacks, so users edit templates without a desktop app.