details:   https://code.openbravo.com/erp/devel/pi/rev/bb980d7198e0
changeset: 21344:bb980d7198e0
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Tue Oct 22 10:53:35 2013 +0200
summary:   Fixes issue 24985: Audit data values are not shown in the form view

One of the changes introduced by the grid datasource project [1] was that the 
grid does not load all the properties for each row, only the ones that are 
visible in the grid (plus a few other required ones). When a record is opened 
in form view there is call to the FIC in EDIT mode to retrieve all the record 
values. The problem is that the audit values are not being returned in that FIC 
call, because there are no fields for those values.

To fix this, the audit values have been added to the list of mandatory 
properties, so they will be loaded to the grid even if they are not being shown.

[1] https://code.openbravo.com/erp/devel/pi/rev/94d0fb151919

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
 |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 0c6559f88e5a -r bb980d7198e0 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
     Mon Oct 21 12:26:36 2013 +0530
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
     Tue Oct 22 10:53:35 2013 +0200
@@ -251,7 +251,10 @@
     requiredGridProperties.add("id");
     requiredGridProperties.add("client");
     requiredGridProperties.add("organization");
-
+    requiredGridProperties.add("updatedBy");
+    requiredGridProperties.add("updated");
+    requiredGridProperties.add("creationDate");
+    requiredGridProperties.add("createdBy");
     for (Property identifierProperty : this.entity.getIdentifierProperties()) {
       requiredGridProperties.add(identifierProperty.getName());
     }

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to