- ADempiere 3.6 Cookbook
- Ajit Kumar
- 491字
- 2021-04-09 21:40:54
Practically, there will be a situation when we will have to make changes to the existing screens. For example, label change, data type change, logically grouping the fields, and so on. In this recipe, we will take our newly created MOM window and we will customize it further to understand the process involved in customizing an existing window.
In the previous recipe, our window had a Start Date, Start Time, and End Time. All of them display both the date and time. Now, say, we want to achieve the following:
- Start Date displays only the date
- Start Time and End Time displays only the time
- Start Time and End Time shall appear in the same line
Given this customization need, let us see how we can achieve it.
- Log in as System/System with the System Administrator role.
- Click on the Menu | Application Dictionary | Table and Column menu. This pops up the lookup window and prompts for table details. Enter the details to find the MOM related table.
- Go to the Column tab for the MOM table and take a look at the fields that interest us, as shown in the following screenshot:
- Select end_time in the DB Column Name and select Time in the Reference field.
- Repeat step 5 for start_time.
- For start_date, select the Reference field as Date. The following screenshot shows the fields with their updated Reference.
- Go to the Window, Tab, and Field window for the Minutes Of Meeting and go to the Field tab.
- Check the Same Line checkbox for the end_time field to show Start Time and End Time in the same line, as shown in the following screenshot:

With this, we are done with our customization. The following screenshot shows how the window looks after the changes:

In this recipe, we changed the data types of Start Date, Start Time, and End Time in steps 1 through to 6 and placed Start Time and End Time fields in the same line in the steps 7-8. The default Reference Date+Time, which ADempiere guesses for the timestamp columns, would show the date as well as the time. So, in order to change the type, the following is the field and Reference mapping:

When it comes to showing multiple fields on the same line, ADempiere uses the Same Line flag at the field level to determine whether the field needs to be rendered to the next line or to the same line. ADempiere uses a two column layout for the tab panel. Hence, at most, only two fields can be displayed in a single line.
ADempiere determines the field data type and validation using the field Reference
. There is a list of pre-defined Reference lists, which ADempiere provides. Moreover, in case you need, you can also create a new reference for your application. You may refer to the supported Reference list at http://en.wikiversity.org/wiki/ADempiere_Application_Dictionary#Reference.
- 穿越Photoshop CC
- Maya建模技術解析
- ASP.NET MVC 2 Cookbook
- Photoshop CS6實戰基礎培訓教程(全視頻微課版)
- Photoshop CC平面設計教程(微課版)
- 中文版Photoshop CS6經典自學教程
- Elasticsearch數據搜索與分析實戰
- Python Testing Cookbook
- Origin科技繪圖與數據分析
- Apache CXF Web Service Development
- 夢幻森林Procreate童話風插畫繪制專業技法
- Joomla! 1.5 Top Extensions Cookbook
- 計算機圖形制作CorelDRAW X6項目教程
- Photoshop CS6淘寶美工完全實例教程(全視頻彩色版)
- UG NX 12.0中文版自學視頻教程