Registering Data when Creating a New Report
Our sample projects and report templates can help you learn the basics of working with our products.When a user creates a new report in the designer, you can automatically register data for it through the
Handle the create-report event.
How it works. Every new report begins with data already registered, so users can drag fields immediately without configuring a connection.
onCreateReport event.Handle the create-report event.
designer = StiDesigner()
# Register data for every newly created report
designer.onCreateReport += 'createReport'
designer.options.appearance.fullScreenMode = True
if designer.processRequest(request):
return designer.getFrameworkResponse()designer.onCreateReport += handler— fires when the user starts a new report, so you can attach a data source to it.- As with other events, a string targets a JavaScript handler and a function targets Python.
How it works. Every new report begins with data already registered, so users can drag fields immediately without configuring a connection.