Notes |
|
(0045465)
|
hgbot
|
2012-02-27 11:49
|
|
Repository: erp/devel/pi
Changeset: 5d04ccfa2cd8970d958ca1988700e2e12e60241f
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Feb 27 11:18:21 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5d04ccfa2cd8970d958ca1988700e2e12e60241f [^]
Related to issue 19805: Modify grid properties of String and Foreign Key fields
Include info about the length of ForeignKeyUIDefinition in the getGridFieldProperties method. Edit the info about the length of StringUIDefinition so it is taken from field.getDisplayedLength() istead of field.getColumn().getLength(). This length info is then used to select the field that will be automatically expanded in the grid (if any).
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/ForeignKeyUIDefinition.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/StringUIDefinition.java
---
|
|
|
(0045466)
|
hgbot
|
2012-02-27 11:49
|
|
Repository: erp/devel/pi
Changeset: 4d25a7e6f421c76c078af6714f7db2c896a7276e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Feb 27 11:30:01 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4d25a7e6f421c76c078af6714f7db2c896a7276e [^]
Fixes issue 19805: Fix function that sorts an array by the length property
To decide which field should be automatically expanded in the field, the array that contains all the fields is sorted by the length property. Then the available field with the highest length will the one being auto expanded. The function used to sort the array was faulty, now it is fixed: it puts first in descending order the fields that have defined the length property, and after them it puts the fields that do not have that property defined.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
|
|
|
|
The code that has been changed is only used to select the field (if any) that will be auto expanded in the grid. This feature is now working properly (the field with the highest displayed length will be selected for auto expanding).
This fix is not risky. |
|
|
|
|
|
|
|
|
(0046348)
|
dbaz
|
2012-03-13 15:31
|
|
I can reproduce it in changeset 15787 - 65db26640ba6 |
|
|
(0046357)
|
hgbot
|
2012-03-13 17:01
|
|
Repository: erp/devel/pi
Changeset: adc3dd7a561d56f19c557851c85b7c94693b415d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 13 16:57:44 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/adc3dd7a561d56f19c557851c85b7c94693b415d [^]
Fixes issue 19805: Column width in grid is now consistent.
When there were more than one field with the same displaylength, the way they were positioned in the ordered array varied.
Now if two fields have the same displaylength, their length property is checked. If the value of that property is also the same, the name of the fields is taken into account. This way, all the browsers produ
ce the same ordered array.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
|
|
|
(0047006)
|
hgbot
|
2012-04-01 20:33
|
|
Repository: erp/devel/pi
Changeset: 5821df1f30bc067c2355d2801fe9a6d6de2e08f0
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 13 16:57:44 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5821df1f30bc067c2355d2801fe9a6d6de2e08f0 [^]
Fixes issue 19805: Column width in grid is now consistent.
When there were more than one field with the same displaylength, the way they were positioned in the ordered array varied.
Now if two fields have the same displaylength, their length property is checked. If the value of that property is also the same, the name of the fields is taken into account. This way, all the browsers produ
ce the same ordered array.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
|
|
|
|
|