Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024181Openbravo ERPB. User interfacepublic2013-06-25 10:442013-07-16 14:26
jonalegriaesarte 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
pi 
3.0MP263.0MP26 
shankarb
Core
No
0024181: In table reference the flag displayed value is not working in grid view
In table reference the flag displayed value is not working. When flagged it is supposed to show the column value as identifier in the text, but it is not working neither in grid nor filtering the expression.
Example based on time expense window:

- Reference, C_BPartner Employee w Address reference
- Table reference window, flag displayed value
- Expense Sheet window, create a new one and save it. Notice that the value appears in form window but it is not appearing in grid window.
No tags attached.
related to defect 0025928 closed caristu Error in displayed value of table reference if the search key of the record is null 
related to defect 00266963.0PR14Q4 closed shankarb The filter does not work when changing the ad_org_id column to a table reference displayng the value column. 
diff issue24181.diff (4,471) 2013-06-26 18:35
https://issues.openbravo.com/file_download.php?file_id=6227&type=bug
Issue History
2013-06-25 10:44jonalegriaesarteNew Issue
2013-06-25 10:44jonalegriaesarteAssigned To => AugustoMauch
2013-06-25 10:44jonalegriaesarteModules => Core
2013-06-25 10:44jonalegriaesarteTriggers an Emergency Pack => No
2013-06-25 10:44jonalegriaesarteTarget Version3.0MP25 => 3.0MP26
2013-06-26 17:27AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4836#r4836
2013-06-26 18:35AugustoMauchFile Added: issue24181.diff
2013-06-26 18:36AugustoMauchStatusnew => scheduled
2013-06-26 18:36AugustoMauchNote Added: 0059689
2013-06-26 18:36AugustoMauchfix_in_branch => pi
2013-07-02 18:09AugustoMauchIssue Monitored: shankarb
2013-07-02 18:09AugustoMauchReview Assigned To => shankarb
2013-07-02 18:09AugustoMauchfix_in_branchpi =>
2013-07-02 18:12hgbotCheckin
2013-07-02 18:12hgbotNote Added: 0059818
2013-07-02 18:12hgbotStatusscheduled => resolved
2013-07-02 18:12hgbotResolutionopen => fixed
2013-07-02 18:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7bdf0827319594efeca9355d126bfe26795ce2a7 [^]
2013-07-02 18:13AugustoMauchNote Added: 0059819
2013-07-04 11:09hgbotCheckin
2013-07-04 11:09hgbotNote Added: 0059855
2013-07-16 06:01shankarbNote Added: 0059987
2013-07-16 06:01shankarbStatusresolved => closed
2013-07-16 06:01shankarbFixed in Version => 3.0MP26
2013-07-16 14:26hudsonbotCheckin
2013-07-16 14:26hudsonbotNote Added: 0060010
2013-07-16 14:26hudsonbotCheckin
2013-07-16 14:26hudsonbotNote Added: 0060026
2014-03-06 22:23caristuRelationship addedrelated to 0025928
2014-05-27 13:58jonalegriaesarteRelationship addedrelated to 0026696

Notes
(0059689)
AugustoMauch   
2013-06-26 18:36   
A patch has been attached. It will not be pushed to pi until it has been tested more
(0059818)
hgbot   
2013-07-02 18:12   
Repository: erp/devel/pi
Changeset: 7bdf0827319594efeca9355d126bfe26795ce2a7
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Jul 02 18:08:40 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7bdf0827319594efeca9355d126bfe26795ce2a7 [^]

Fixes issue 24181: Displayed Value flag in Table Reference works

The Displayed Value flag was not being taken into account in the DataToJsonConverter class, so it was not being shown in the grid. To fix this, the displayedV
alue property has been added to the RefTable base class. This property is checked in the isDisplayedValue method of the Property class which is used in the Da
taToJsonConverter to check if the value (searchKey property) of the entity should be appended to its identifier.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DataToJsonConverter.java
M src/org/openbravo/base/model/Property.java
M src/org/openbravo/base/model/RefTable.hbm.xml
M src/org/openbravo/base/model/RefTable.java
---
(0059819)
AugustoMauch   
2013-07-02 18:13   
Test plan:
- Test that if the steps to reproduce are followed the issue is not reproduced
- Test it again with a table that does not have a searchKey column. In that case it should just show a warning when the grid is refreshed.
(0059855)
hgbot   
2013-07-04 11:09   
Repository: erp/devel/pi
Changeset: c708a98b9d609e1c8dfb7d9cfe9442eaf8cf78f3
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jul 04 11:08:40 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c708a98b9d609e1c8dfb7d9cfe9442eaf8cf78f3 [^]

Related to issue 24181: Prevents exception when identifier column not a string

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DataToJsonConverter.java
---
(0059987)
shankarb   
2013-07-16 06:01   
Code reviewed and tested in pi changeset 436cd2fa79fc
(0060010)
hudsonbot   
2013-07-16 14:26   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9a5d5983399f [^]

Maturity status: Test
(0060026)
hudsonbot   
2013-07-16 14:26   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9a5d5983399f [^]

Maturity status: Test