Registering Data when Creating a New Dashboard
Our sample projects and report templates can help you learn the basics of working with our products.When a user creates a new dashboard in the designer, you can automatically register data for it through the
Handle the create event.
How it works. Every new dashboard begins with data already registered, so users can drop elements immediately without configuring a connection.
onCreateReport event.Handle the create event.
designer = StiDesigner()
# Register data for every newly created dashboard
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 dashboard, 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 dashboard begins with data already registered, so users can drop elements immediately without configuring a connection.