Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0003976 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 00. Application dictionary | major | always | 2008-06-14 02:03 | 2008-12-02 13:02 | |||
Reporter | galderromo | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | high | Resolution | fixed | Fixed in Version | pi | |||
Status | closed | Fix in branch | Fixed in SCM revision | 5084 | ||||
Projection | none | ETA | none | Target Version | 2.40 | |||
OS | Linux 32 bit | Database | Oracle | Java version | 1.5.0_15 | |||
OS Version | Gentoo 2.6.24 | Database version | XE | Ant version | 1.7 | |||
Product Version | 2.35MP4 | 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 | 0003976: identifier&isselectioncolumn on foreign keys when generating windows. | |||||||
Description | It 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 Reproduce | Using 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0007761) alostale (viewer) 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. |
(0007762) alostale (viewer) 2008-06-17 10:23 |
Solution: the identifier in case 2 is not going to be the column with seqno=1 but the lowest one. |
(0007763) svnbot (viewer) 2008-06-17 10:24 |
Repository: openbravo Revision: 5084 Author: alostale Date: 2008-06-17 10:24:15 +0200 (Tue, 17 Jun 2008) fixed bug 0003976: Identifier for parameters in action button are not taken with the column with seqno=1 but the lowest one set as identifier --- U trunk/src-wad/src/org/openbravo/wad/Fields_data.xsql U trunk/src-wad/src/org/openbravo/wad/datasource.xsqlxml --- https://dev.openbravo.com/websvn/openbravo/?rev=5084&sc=1 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2008-06-14 02:03 | galderromo | New Issue | |
2008-06-14 02:03 | galderromo | Assigned To | => cromero |
2008-06-16 11:14 | psarobe | Status | new => scheduled |
2008-06-16 11:14 | psarobe | Assigned To | cromero => alostale |
2008-06-16 11:15 | psarobe | Priority | normal => high |
2008-06-16 11:15 | psarobe | Target Version | => 2.40 |
2008-06-16 11:15 | psarobe | Status | scheduled => feedback |
2008-06-16 11:16 | psarobe | Status | feedback => scheduled |
2008-06-17 10:21 | alostale | Note Added: 0007761 | |
2008-06-17 10:23 | alostale | Note Added: 0007762 | |
2008-06-17 10:24 | svnbot | Checkin | |
2008-06-17 10:24 | svnbot | Note Added: 0007763 | |
2008-06-17 10:24 | svnbot | Status | scheduled => resolved |
2008-06-17 10:24 | svnbot | Resolution | open => fixed |
2008-06-17 10:24 | svnbot | svn_revision | => 5084 |
2008-08-21 17:00 | psarobe | Regression testing | => No |
2008-08-21 17:00 | psarobe | Status | resolved => closed |
2008-08-21 17:00 | psarobe | Fixed in Version | => trunk |
2008-12-02 13:02 | jaimetorre | sf_bug_id | 0 => 2377061 |
Copyright © 2000 - 2009 MantisBT Group |