Top view of Business people team working together at office desk with laptop, tablet, financial paperwork and reports

iDempiere is an open-source ERP system that provides many features to its users. JasperReports is an open-source reporting library that is integrated with iDempiere to generate reports. In this article, we will discuss the built-in parameters and other parameters that are used in iDempiere Jasperreport.

Built-in Parameters:

iDempiere automatically includes four important built-in parameters in the Procedure. These parameters are AD_PINSTANCE_ID, AD_Table_ID, RECORD_ID, and CURRENT_LANG. These parameters are used to fetch data from the database and generate reports based on the user’s requirements.

  1. AD_PINSTANCE_ID: This parameter is used to retrieve the ID of the iDempiere instance that is currently being used. It is an integer value.
  2. AD_Table_ID: This parameter is used to retrieve the ID of the table that is being queried. It is an integer value.
  3. RECORD_ID: This parameter is used to retrieve the ID of the record that is being queried. It is an integer value.
  4. CURRENT_LANG: This parameter is used to retrieve the language code of the user. It is a string value.

Other Parameters:

Apart from the built-in parameters, iDempiere also provides other parameters that can be used in Jasperreport. One such parameter is the Range parameter. When passing Range parameters in the Procedure, the second parameter becomes “PARAMETER_TO“. However, in Jasperreport, the first parameter becomes “PARAMETER1” and the second parameter becomes “PARAMETER2“.

For example, let’s consider the parameter “DateAcct“. In Procedure, the parameter would be named “DateAcct” and “DateAcct_TO“. In Jasperreport, the parameter names would be “DateAcct1” and “DateAcct2“.

Conclusion:

In conclusion, integrating iDempiere with JasperReports is a powerful way to generate customized reports that provide valuable insights into business processes. However, it is important to be aware of the built-in parameters that are automatically passed into iDempiere procedures and the naming conventions for range parameters in JasperReports. By understanding these key aspects, businesses can ensure that their reporting systems are properly integrated and functioning as intended. With the right tools and knowledge, businesses can unlock the full potential of these powerful tools and gain a competitive edge in today’s dynamic market.

By Ray Lee (System Analyst)

iDempeire ERP Contributor, 經濟部中小企業處財務管理顧問 李寶瑞

Leave a Reply

Your email address will not be published. Required fields are marked *