ADempiere Application Dictionary

Completion status: this resource is considered to be complete.
Resource type: this resource is a lesson plan.
Resource type: this resource is a workshop.
Subject classification: this is an information technology resource .

Introduction

This is a sup-topic of Adempiere Technical Training which seeks to train Open Source ERP practitioners in the technical aspects of the application. The application dictionary is one of the most powerful aspects of Adempiere, virtually all of the application can be driven via changes in the dictionary – development (writing code) is drastically reduced – most of the application can be configured directly in the dictionary without requiring compilation or re-building. You can read more from here.

Entity Types

The entity type determines the ownership of Application Dictionary entries. The types "Dictionary" and "Adempiere" should not be used as they are maintainted by Adempiere – this is the official Adempiere dictionary.

Last Addition in Adempiere (3.3.1) is to define a model package to look for model classes based on entity types (i.e. Look in org.evolution.model instead of org.compiere.model)

Element

This is the central repository for field names, description and help/comments. As well as translations.

Define the names, label, description, help for sales and purchase contexts.

Table and Column

This is closely related to database, it is kind of metadata of the database tables and columns translated to Adempiere “object” notation.

Tables

You can use it also to make a table read-only

Columns

Reference

The Reference Window defines field/display types and validations.

Supported Data Types:

Type Description
Account Account Element
Amount Number with 4 decimals
Assignment Resource Assignment
Binary Binary Data
Button Command Button - starts a process
Color Color element
Costs+Prices Costs + Prices (minimum currency precision, but if exists more)
Date Date mm/dd/yyyy
Date+Time Date with time
FileName Local File
FilePath Local File Path
ID 10 Digit Identifier
Image Binary Image Data
Integer 10 Digit numeric
List Reference List
Location (Address) Location/Address
Locator (WH) Warehouse Locator Data type
Memo Large Text Editor - Character String up to 2000 characters
Number Float Number
Printer Name
Product Attribute Product Attribute
Quantity Quantity data type
RowID Row ID Data Type
Search Search List
String Character String
Table Table List (Use Key and Display)
Table Direct Direct Table Access

NOTE: Table name is taken from the column name except the _ID suffix – CASE SENSITIVE (Use Key and Identifier)

Text Character String up to 2000 characters
Text Long Text (Long) - Text > 2000 characters
Time Time
URL URL
Yes-No CheckBox

List Validations

Lists of Values (domains)

Table Validations

List of Records from a Table – you can define where and order by clauses.

Validation Rules

The Validation Rules Window defines all dynamic rules used when entering and maintaining columns and fields.

Common use to filter tables and table lists with dynamic values from context variables.

Exercise: Create the following tables in dictionary and then database

Field Group

The Field Group Window allows you to define subsections in a tab. Since Adempiere 3.3.1 you can group those fields in a collapse group or in a horizontal tab.

Window, Tab and Field

The Window, Tab & Field Window defines the presentation (GUI) of tables and columns within each window.

Transaction windows just show items created/updated last 24 hours or pending (user can select to show more with history button)

Window

Tab

Field

The Field Tab defines the Fields displayed within a tab. If the Sequence is negative, the record are ordered descending. Note that the name, description and help is automatically synchronized if centrally maintained.

Forms

The Forms Window defines any window which is not automatically generated.

Hand Coded window – some windows are too complex to generate (like Payment Allocation – relation m:n)

Message

All messages are cached at startup of Adempiere.

Report View

Tips for views:

Process and Reports

Processes and reports are the same.

Parameters: As columns or fields you can define defaults, and support ranges

Menu

Default tree include all items You can define your own customized menu:

The menu terminology is synchronized with windows and processes names.

Exercise:

Tasks

Define operating system calls.

Other System Entities

Country – Region and City

Define the layout of address

Currency

Defines the precision of number of decimal points used in the particular currency when displaying amounts in it.

This article is issued from Wikiversity - version of the Monday, January 31, 2011. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.