Jam.py documentation

param_form

param_form

domain: client

language: javascript

class Report class

Description

Use param_form attribute to get access to a Jquery object representing the param form of the report.

It is created by the create_param_form method, that, usually, is called by then print method.

The close_param_form method sets the param_form value to undefined.

Example

function on_param_form_created(report) {
    report.create_param_inputs(report.param_form.find(".edit-body"));
    report.param_form.find("#cancel-btn").on('click.task', function() {
        report.close_param_form();
    });
    report.param_form.find("#ok-btn").on('click.task', function() {
        report.process_report()
    });
}