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 December 31, 2014 at 9:44 AM

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

Hiep Lq November 28, 2014 at 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.

Armen Rizal November 28, 2014 at 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 February 28, 2014 at 5:25 AM

merge patch for easy review

Hiep Lq February 13, 2014 at 6:41 PM

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

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created February 13, 2014 at 6:33 AM
Updated May 4, 2015 at 5:43 PM
Resolved November 28, 2014 at 11:46 PM