Jam.py documentation

create_param_form

create_param_form()

domain: client

language: javascript

class Report class

Description

The create_param_form method is called by the print method to create a form to set report parameters before sending a request to the server by the process_report method.

The method checks if javascript modules of the report and its owner are loaded, and if not (the Dynamic JS modules loading parameter is set) then loads them.

Then it searches for the report html template in the task templates attribute (See Forms ) and creates a clone of the template and assigns it to the report param_form attribute.

Creates a form and appends the html to it.

Triggers the on_param_form_created of the task.

Triggers the on_param_form_created of the report group, if one is defined.

Triggers the on_param_form_created of the report, if one is defined.

Shows the form. Before showing the form the method applies options specidied in the param_options attribute.

Triggers the on_param_form_shown of the task.

Triggers the on_param_form_created of the report group, if one is defined.

Triggers the on_param_form_shown of the report, if one is defined.