Header Ads

Message box in ADempiere

ADempiere have its own standard in its pop up messages. Normally we can use JOptionPane provided by  java. But you need to compromise its look and feel in your application.

The following are the commonly used pop up box menthods in ADempiere in different instances.

1. mTab.fireDataStatusEEvent("Already open access","message",true);
Used in callouts.

2. log.saveError("Invalid Date", message);
Used in model classes.

3. ADialog.error(m_WindowNo, this, "FillMandatory", sb.toString());
            return false;
Used in client classes. If it is used in the higher build priority classes, you may have build error.

4. throw new IllegalStateException("Could not create accrual entry");
Used to throw exceptions in your code.
Powered by Blogger.