O'Reilly logo

ADempiere 3.6 Cookbook by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the context in a report

JasperReports allows us to add parameters to a report and their values can be passed by the caller. For example, we can create a parameter, momId, in the report and allow the user of the report to pass the value for it at runtime. Moreover, inside the report, different decisions (for example, filtering data) can be taken at runtime based on the parameter value. When we use a Jasper report inside ADempiere, it passes the following to every report:

  • Current context
  • Parameters specified in the report
  • RECORD_ID: The primary key of the current record. This is passed as Integer
  • AP_INSTANCE_ID: The ID of the current process. This is passed as Integer
  • CURRENT_LANG: The current language. This is passed as String

While others are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required