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

Creating a callout

Callout is mainly used to perform some dynamic actions when a value in a particular field is changed. Each field in ADempiere maps to a column in a particular table, so callout is configured at column level. Callout is a Java method that gets invoked when there is a change in the field data in a tab.

Getting ready

Launch Eclipse and open the adempiere_360 project in it.

How to do it...

  1. Create a class, say, CalloutMom, in the org.compiere.model package.
    package org.compiere.model; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Properties; import java.util.logging.Level; import org.compiere.util.DB; import org.compiere.util.Env; /** * * @author Ajit Kumar (ajit.kumar@walkingtree.in) ...

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