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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0003985
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 00. Application dictionarymajoralways2008-06-16 11:162008-06-25 16:21
ReportergalderromoView Statuspublic 
Assigned Toalostale 
PriorityhighResolutionfixedFixed in Version2.35MP6
StatusclosedFix in branch2.3xFixed in SCM revision5085
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version1.5.0_15
OS VersionGentoo 2.6.24Database versionXEAnt version1.7
Product Version2.35MP4SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0003985: identifier&isselectioncolumn on foreign keys when generating windows.

DescriptionIt looks like when generating a window, if there is a foreign key, WAD gets the column matching the lowest sequence and isselectioncolumn='Y' even if this column is not an identifier. Although the application is looking for an identifier.
Steps To ReproduceUsing the standard configuration.
1- Trough the application dictionary go to table: C_BPARTNER.
2- Column: TaxID
3- Get the lowest sequence and mark as isselectioncolumn, make sure it is not an identifier.
4- Compile Bank Statement window (for example)
ERROR:
     [java] 1535 [main] INFO org.openbravo.data.Sqlc - File: ../srcAD/org/openbravo/erpWindows/BankStatement/Lines_data.xsql processed
     [java] 1726 [main] ERROR org.openbravo.data.Sqlc - SQL error in query:
     [java] SELECT FROM C_BPartner WHERE isActive='Y' AND C_BPartner_ID = ?
     [java] Exception:java.sql.SQLException: ORA-00936: missing expression
5- Mark TaxID column as identifier and compile Bank Statement window: NO ERROR
6- Mark TaxID column as no identifier and get a higher sequence and compile Bank Statement window: NO ERROR
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00039762.40 closedalostale identifier&isselectioncolumn on foreign keys when generating windows. 

-  Notes
(0007760)
alostale (manager)
2008-06-17 10:21

The problem actually happens when:
1. There is a table (table A) that doesn't have any column set as identifier which sequence number is 1.
2. There is a tab with an action button with at least one of its parameters referencing to the table A.
(0007764)
svnbot (reporter)
2008-06-17 10:29

Repository: openbravo
Revision: 5085
Author: alostale
Date: 2008-06-17 10:29:08 +0200 (Tue, 17 Jun 2008)

fixed bug 0003985: Problem with identifiers for action buttons

---
_U branches/r2.3x/
U branches/r2.3x/src-wad/src/org/openbravo/wad/Fields_data.xsql
U branches/r2.3x/src-wad/src/org/openbravo/wad/datasource.xsqlxml
---

https://dev.openbravo.com/websvn/openbravo/?rev=5085&sc=1 [^]

- Issue History
Date Modified Username Field Change
2008-06-16 11:16 psarobe New Issue
2008-06-16 11:16 psarobe Assigned To => alostale
2008-06-16 11:16 psarobe Status new => scheduled
2008-06-17 10:21 alostale Note Added: 0007760
2008-06-17 10:29 svnbot Checkin
2008-06-17 10:29 svnbot Note Added: 0007764
2008-06-17 10:29 svnbot Status scheduled => resolved
2008-06-17 10:29 svnbot Resolution open => fixed
2008-06-17 10:29 svnbot svn_revision => 5085
2008-06-23 23:26 cromero Fixed in Version => 2.35MP6
2008-06-25 16:21 plujan Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker