Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023227Openbravo ERPA. Platformpublic2013-03-05 10:332013-03-06 19:42
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
3.0MP213.0MP21 
shankarb
Core
No
0023227: Not possible to define a default value for boolean parameters in Parameter Windows
When a default value ('Y', 'N') is defined for a boolean parameter in a parameter window, the parameter is always initialized as checked, and the display logic does not work as it should.
Create a parameter window with two parameters:
- boolean parameter, defaulted to 'Y'
- string parameter, display logic = @booleanParameter@='Y'

See that even though the boolean parameter is initialized checked, the string parameter is not shown.
No tags attached.
Issue History
2013-03-05 10:33AugustoMauchNew Issue
2013-03-05 10:33AugustoMauchAssigned To => AugustoMauch
2013-03-05 10:33AugustoMauchModules => Core
2013-03-05 10:33AugustoMauchTriggers an Emergency Pack => No
2013-03-05 10:45AugustoMauchIssue Monitored: shankarb
2013-03-05 10:45AugustoMauchReview Assigned To => shankarb
2013-03-05 10:46hgbotCheckin
2013-03-05 10:46hgbotNote Added: 0057036
2013-03-05 10:46hgbotStatusnew => resolved
2013-03-05 10:46hgbotResolutionopen => fixed
2013-03-05 10:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8b09db1c33be55c862c68e45b3533bea7fe15daa [^]
2013-03-05 12:48shankarbNote Added: 0057043
2013-03-05 12:48shankarbStatusresolved => new
2013-03-05 12:48shankarbResolutionfixed => open
2013-03-05 12:53hgbotCheckin
2013-03-05 12:53hgbotNote Added: 0057044
2013-03-05 12:53hgbotStatusnew => resolved
2013-03-05 12:53hgbotResolutionopen => fixed
2013-03-05 12:53hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/8b09db1c33be55c862c68e45b3533bea7fe15daa [^] => http://code.openbravo.com/erp/devel/pi/rev/a60624fb0f407857a7c1ce906d2ee90645b3e3f9 [^]
2013-03-05 13:10shankarbNote Added: 0057045
2013-03-05 13:10shankarbStatusresolved => closed
2013-03-05 13:10shankarbFixed in Version => 3.0MP21
2013-03-06 19:42hudsonbotCheckin
2013-03-06 19:42hudsonbotNote Added: 0057111
2013-03-06 19:42hudsonbotCheckin
2013-03-06 19:42hudsonbotNote Added: 0057112

Notes
(0057036)
hgbot   
2013-03-05 10:46   
Repository: erp/devel/pi
Changeset: 8b09db1c33be55c862c68e45b3533bea7fe15daa
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 05 10:44:18 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8b09db1c33be55c862c68e45b3533bea7fe15daa [^]

Fixes issue 23227: Enables defining a default value for booleans in PW windows

When 'N' or 'Y' is defined as a default value for a parameter in PW windows, an actual boolean (false, true) is used for the parameter default value.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/process/DefaultsProcessActionHandler.java
---
(0057043)
shankarb   
2013-03-05 12:48   
The solution does not work with numeric columns. Tested with the minQty field in the 'Example Param Process' in Client Application Examples module.
(0057044)
hgbot   
2013-03-05 12:53   
Repository: erp/devel/pi
Changeset: a60624fb0f407857a7c1ce906d2ee90645b3e3f9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Mar 05 12:53:11 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a60624fb0f407857a7c1ce906d2ee90645b3e3f9 [^]

Fixes issue 23227: fix is only applied to boolean columns

The previous fix did not work when the parameter window had numeric columuns. The fix has been changed so that it is only applied to boolean columns.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/process/DefaultsProcessActionHandler.java
---
(0057045)
shankarb   
2013-03-05 13:10   
Code reviewed and verified in pi changeset a60624fb0f40.
(0057111)
hudsonbot   
2013-03-06 19:42   
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/95e36a1b246f [^]

Maturity status: Test
(0057112)
hudsonbot   
2013-03-06 19:42   
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/95e36a1b246f [^]

Maturity status: Test