Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020027Openbravo ERPA. Platformpublic2012-03-14 18:322012-04-02 06:10
eduardo_Argal 
alostale 
highmajoralways
closedfixed 
5
 
3.0MP10 
Core
No
0020027: Default values for search components in parameter windows are not working
When defining a parameter for a process of type search, system fails in compilation if a default value is set using an sql (SQL=...)
when creating java class, two setParameters are required to fill in values for the search component:
xxx_ID.- the id
xxxx_ID_R - the name displayed in the selector
It properly sets the value for the ID parameter as result of the sql provided.
It as well sets properly the value for ID_R as a select to build its identifier, but when passing the parameters to this second sql, ID is missing so compilation fails as wrong number of parameters is provided (It is missing the ID which would be the same sql provided for first parameter ID)
1) Go to Create orders process from Manage requisitions window
2) Modify BPartner parameter adding a defalt value as:
SQL=select max(c_bpartner_id) from c_bpartner
3) compile the window and realize that an error is thrown which states that there is a missing parameter for a XSQL method (ID is missing)
when wad is building java file it should pass as a parameter (for the ID_R used in the search component) the call of the select provided in the default value.
No tags attached.
blocks defect 0018664 closed naiaramartinez Create Purchase Order window (pop-up from Manage Requisition window) should be review and re-phrased 
Issue History
2012-03-14 18:32eduardo_ArgalNew Issue
2012-03-14 18:32eduardo_ArgalAssigned To => alostale
2012-03-14 18:32eduardo_ArgalModules => Core
2012-03-14 19:07eduardo_ArgalRelationship addedrelated to 0018664
2012-03-14 19:07eduardo_ArgalRelationship replacedblocks 0018664
2012-03-15 11:14alostaleNote Added: 0046444
2012-03-15 11:15hgbotCheckin
2012-03-15 11:15hgbotNote Added: 0046445
2012-03-15 11:15hgbotStatusnew => resolved
2012-03-15 11:15hgbotResolutionopen => fixed
2012-03-15 11:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bfd342589be71e609c725757cb86333883cdcef0 [^]
2012-03-28 12:33marvintmStatusresolved => closed
2012-03-28 12:33marvintmFixed in Version => 3.0MP10
2012-04-02 06:10hudsonbotCheckin
2012-04-02 06:10hudsonbotNote Added: 0047144

Notes
(0046444)
alostale   
2012-03-15 11:14   
No regression risk.

Test plan:
-Execute steps to reproduce and check it works fine.
-No regression: Compare generated srcAD before and after applying the fix. There should only be code changes for this case.
(0046445)
hgbot   
2012-03-15 11:15   
Repository: erp/devel/pi
Changeset: bfd342589be71e609c725757cb86333883cdcef0
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 15 11:12:43 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bfd342589be71e609c725757cb86333883cdcef0 [^]

fixed bug 20027: Defaults for searchs in parameter windows are not working

Adding to second default (the one for the displayed value) actual ID. In case of SQL
defaults

---
M src-wad/src/org/openbravo/wad/WadActionButton.java
---
(0047144)
hudsonbot   
2012-04-02 06:10   
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/7814864461ac [^]

Maturity status: Test