Allow field createBy updateBy load data.

Description

ref: https://groups.google.com/forum/#!topic/idempiere/hJ0biL8q9bU
patch include sql to display update field in some document (invoice, order,...)
step add patch without it:
import patch info working repository.
delete sql file
commit, push.

Environment

None

Activity

Show:
Hiep Lq
February 13, 2014, 6:41 PM

new validate make a warning. by not use table name. fixed with loadCreateUpdateField-fixValidate.patch

Hiep Lq
February 28, 2014, 5:25 AM

merge patch for easy review

Armen Rizal
November 28, 2014, 2:29 AM

Hi Hiep,

When I'm reviewing this, I found the solution here:

In GridField.java, you should move this block of codes from loadLookUp() into loadLookupNoValidate

// Prevent loading of CreatedBy/UpdatedBy
if (m_vo.displayType == DisplayType.Table
&& (m_vo.ColumnName.equals("CreatedBy") || m_vo.ColumnName.equals("UpdatedBy")) )
{
m_vo.lookupInfo.IsCreadedUpdatedBy = true;
m_vo.lookupInfo.DisplayType = DisplayType.Search;
m_vo.displayType = DisplayType.Search; // Add this line too, so it can show up as "Search"
}
//

That's all.

Regards,

Armen
Goodwill.co.id

Hiep Lq
November 28, 2014, 12:23 PM

i don't remember why i must change more code than you. but my goal is display update/create field at search panel also at window.

Hiep Lq
December 31, 2014, 9:44 AM

thanks and
your patch suitable with my wish, because my patch is not need. i remove it to avoid confuse.

Fixed

Assignee

Armen Rizal

Reporter

Hiep Lq

Labels

Tested By

None

Components

Fix versions

Affects versions

Priority

Minor