- 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.
- iPad+Procreate數(shù)字插畫設(shè)計(jì)案例教程(全彩微課版)
- Wordpress 3 Complete
- 中文版Illustrator 2021完全自學(xué)教程
- Drools JBoss Rules 5.0 Developer's Guide
- Adobe創(chuàng)意大學(xué)After Effects產(chǎn)品專家認(rèn)證標(biāo)準(zhǔn)教材(CS6修訂版)
- PHP應(yīng)用開發(fā)與實(shí)踐
- 3ds Max/MaxScript印象 腳本動(dòng)畫制作基礎(chǔ)與應(yīng)用
- MATLAB 2022a從入門到精通
- Adobe創(chuàng)意大學(xué)Photoshop產(chǎn)品專家認(rèn)證標(biāo)準(zhǔn)教材(CS6修訂版)
- ANSYS Workbench中文版超級(jí)學(xué)習(xí)手冊
- Building Websites with ExpressionEngine 1.6
- 剪映+Vlog+Premiere短視頻制作從新手到高手
- Photoshop CC入門與提高
- CAD/CAM應(yīng)用教程
- Joomla! E/Commerce with VirtueMart