Font Size:
Ask Joget AI

Passing form value as parameter to filter JasperReport

Introduction

This tutorial demonstrates how to use an HTML form to pass parameters to the JasperReports UI Menu, enabling you to filter a report's results based on input values. By leveraging the Request Parameters Hash Variable, you can dynamically adjust the report output based on user input, enhancing your reports' functionality and interactivity.

How does it work?

To implement this feature, follow these steps:

  1. Add a JasperReports menu to your UI Builder and configure it as usual.
  2. Write the HTML code in the UI > Custom Header section. This form will allow users to enter filter values that will be passed to the report.
  3. Configure the report parameters using the Request Parameters Hash Variable. This will allow the form values to be passed and applied as filters in the report.

Expected outcome

After implementing this setup, users can enter filter values in the form, and the report will dynamically adjust based on these inputs. For example, if a user types a specific character or string into the form and submits it, the report will filter the data accordingly.

  • Before any value is keyed in for the filter.
  • After a j is typed in the filter field, click the Submit button.

Related documentation

Video Tutorial

Download sample app

Download the demo app for Passing form value as parameter to filter JasperReport:
Created by Aadrian Last modified by Nurkhairini Fitrah on Oct 07, 2026