Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0020027 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2012-03-14 18:32 | 2012-04-02 06:10 | |||
Reporter | eduardo_Argal | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0MP10 | |||
Status | closed | Fix in branch | Fixed in SCM revision | bfd342589be7 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0020027: Default values for search components in parameter windows are not working | |||||||
Description | 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) | |||||||
Steps To Reproduce | 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) | |||||||
Proposed Solution | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0046444) alostale (viewer) 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 (developer) 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 (viewer) 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 |
![]() |
|||
Date Modified | Username | Field | Change |
2012-03-14 18:32 | eduardo_Argal | New Issue | |
2012-03-14 18:32 | eduardo_Argal | Assigned To | => alostale |
2012-03-14 18:32 | eduardo_Argal | Modules | => Core |
2012-03-14 18:32 | eduardo_Argal | OBNetwork customer | => No |
2012-03-14 19:07 | eduardo_Argal | Relationship added | related to 0018664 |
2012-03-14 19:07 | eduardo_Argal | Relationship replaced | blocks 0018664 |
2012-03-15 11:14 | alostale | Note Added: 0046444 | |
2012-03-15 11:15 | hgbot | Checkin | |
2012-03-15 11:15 | hgbot | Note Added: 0046445 | |
2012-03-15 11:15 | hgbot | Status | new => resolved |
2012-03-15 11:15 | hgbot | Resolution | open => fixed |
2012-03-15 11:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bfd342589be71e609c725757cb86333883cdcef0 [^] |
2012-03-28 12:33 | marvintm | Status | resolved => closed |
2012-03-28 12:33 | marvintm | Fixed in Version | => 3.0MP10 |
2012-04-02 06:10 | hudsonbot | Checkin | |
2012-04-02 06:10 | hudsonbot | Note Added: 0047144 |
Copyright © 2000 - 2009 MantisBT Group |