Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020027
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2012-03-14 18:322012-04-02 06:10
Reportereduardo_ArgalView Statuspublic 
Assigned Toalostale 
PriorityhighResolutionfixedFixed in Version3.0MP10
StatusclosedFix in branchFixed in SCM revisionbfd342589be7
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020027: Default values for search components in parameter windows are not working

DescriptionWhen 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 Reproduce1) 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 Solutionwhen 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0018664 closednaiaramartinez Create Purchase Order window (pop-up from Manage Requisition window) should be review and re-phrased 

-  Notes
(0046444)
alostale (manager)
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 (developer)
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

- Issue History
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 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
Powered by Mantis Bugtracker