Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0010919 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 00. Application dictionary | minor | always | 2009-10-09 10:38 | 2009-11-11 00:00 | |||
Reporter | FrancescoFinamore | View Status | public | |||||
Assigned To | rafaroda | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | d9f98e1761bf | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_11 | |||
OS Version | rPath Linux | Database version | 8.3.5 | Ant version | 1.7.1 | |||
Product Version | 2.50MP6 | 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 | 0010919: Tab child of Purchase Invoice Line | |||||||
Description | I want create a tab child of the tab Line of the window Sales Invoice. To do this i create a table and one of the columns is m_product_id. When i create all the structures on AD i compile the window but the java class isn't created correctly . It gives this error dataField cannot be resolved Contabilita.java openbravo/srcAD/org/openbravo/erpWindows/PurchaseInvoice line 435 The line relative at the error is : vars.setSessionValue(windowId + "|HASSECONDUOM", LinesData.selectAux800003(this, ((dataField!=null)?dataField.getField("mProductId"): ((data==null || data.length==0)?"":data[0].mProductId)))); | |||||||
Steps To Reproduce | 1) Create a table that have m_product_id in its columns 2) Go on Application Dictionary and create the table linked to the table created at the step 1 3) Create the tab child of lines tab in the Purchase Invoice and link to the table created in the step 2 , seqno=22 , level=2 , create fields 4) compile and build the window N.B. : If you delete m_product_id only from the tab , when go recompile the 2 errors disappear. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0020971) psarobe (viewer) 2009-10-13 10:58 |
Sorry but we don't understand, can you please give a better explanation? Or maybe you should try in the forums Thanks in advance |
(0020973) FrancescoFinamore (viewer) 2009-10-13 11:12 |
To create a tab child of Invoice Line Tab you must create a table on postgresql, right ? We call this table c_test with columns standard c_test_id, ad_client_id--ecc-.., in this table we add the fields, c_invoiceline_id, m_product_id. After this we launch Openbravo e go on Application Dictionary, add the table for c_test, add the fields and launch Syncronize Terminology. Next step is create the tab in the Window : Purchase Invoice , for this tab put this value : Name = Test table = c_test seqno= 22 level= 2 UIPattern = Standard Click create fields Compile and build the window and you will see the errors. I think it is clear now . |
(0021394) eintelau (viewer) 2009-10-27 04:02 |
I also had this problem when developing a module. I did some further investigation and the error occurs when the parent tab as Auxiliar Input(s) defined using the @SQL syntax. When WAD generates the code to retrieve the value of the auxiliar input, that code includes a reference to the dataField variable. The dataField variable is used in the printPageEdit function to retrieve/store the current edit values (it is defined as a FieldProvider). The refreshParentSession function does not define the dataField variable & hence we get a compile error. This bug can be fixed by adding the dataField variable to the refreshParentSession function & setting it to null. The Auxiliar input will then get it's required value from the data variable already defined. |
(0021395) hgbot (developer) 2009-10-27 04:06 |
Repository: erp/devel/pi Changeset: d9f98e1761bf2ccf6d51d287373d0138ab5de882 Author: Ben Sommerville <ben.sommerville <at> eintel.com.au> Date: Tue Oct 27 14:04:27 2009 +1100 URL: http://code.openbravo.com/erp/devel/pi/rev/d9f98e1761bf2ccf6d51d287373d0138ab5de882 [^] Fixes bug 0010919: allow creation of child tab when parent has sql based auxiliar inputs defined --- M .hgignore M src-wad/src/org/openbravo/wad/javasource.javaxml --- |
![]() |
|||
Date Modified | Username | Field | Change |
2009-10-09 10:38 | FrancescoFinamore | New Issue | |
2009-10-09 10:38 | FrancescoFinamore | Assigned To | => rafaroda |
2009-10-13 10:58 | psarobe | Note Added: 0020971 | |
2009-10-13 10:58 | psarobe | Status | new => feedback |
2009-10-13 11:12 | FrancescoFinamore | Note Added: 0020973 | |
2009-10-27 04:02 | eintelau | Note Added: 0021394 | |
2009-10-27 04:06 | hgbot | Checkin | |
2009-10-27 04:06 | hgbot | Note Added: 0021395 | |
2009-10-27 04:06 | hgbot | Status | feedback => resolved |
2009-10-27 04:06 | hgbot | Resolution | open => fixed |
2009-10-27 04:06 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d9f98e1761bf2ccf6d51d287373d0138ab5de882 [^] |
2009-11-10 13:42 | FrancescoFinamore | Status | resolved => closed |
2009-11-11 00:00 | anonymous | sf_bug_id | 0 => 2895555 |
Copyright © 2000 - 2009 MantisBT Group |