Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018415Openbravo ERPA. Platformpublic2011-09-02 08:152011-10-14 12:49
jecharri 
marvintm 
highminorhave not tried
closedfixed 
5
2.50MP33 
2.50MP35 
Google Chrome
Core
No
0018415: Problems with WAD and default values in parameters for Bundle Process
Exist a problem with WAD, when you put one default value to one parameter in a Bundle Process.

The default value must be a SQL sentence.
As System, go to Reports and Process.
Go to process "FIN_DeleteTransaction"
Now, after you have selected the process, go to tab Parameter.
In this tab, create a new parameter (it doesn't mind what you put in all fields apart from the default value) and put one SQL sentence like a default value. For example @SQL=select hola from c_invoice.
Now compile the Financial account window: ant compile -Dtab=Financial
It must be appear the next error:

compileSqlc:
    [javac] Compiling 302 source files to /home/openbravo/src/30POSTGRES/pi/build/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Compiling 25 source files to /home/openbravo/src/30POSTGRES/pi/build/classes
    [javac] /home/openbravo/src/30POSTGRES/pi/srcAD/org/openbravo/erpCommon/ad_actionButton/ActionButtonJava_Responser.java:633: cannot find symbol
    [javac] symbol : variable ActionButtonSQLDefaultData
    [javac] location: class org.openbravo.erpCommon.ad_actionButton.ActionButtonJava_Responser
    [javac] xmlDocument.setParameter("c_invoice_id", ActionButtonSQLDefaultData.selectActPFF8080812F348A97012F349DC24F0007_c_invoice_id(this));
    [javac] ^
    [javac] /home/openbravo/src/30POSTGRES/pi/srcAD/org/openbravo/erpWindows/FinancialAccount/TransactionFF8080812F213146012F2135BC25000E.java:1084: cannot find symbol
    [javac] symbol : method selectActPFF8080812F348A97012F349DC24F0007_c_invoice_id(org.openbravo.erpWindows.FinancialAccount.TransactionFF8080812F213146012F2135BC25000E)
    [javac] location: class org.openbravo.erpWindows.FinancialAccount.TransactionFF8080812F213146012F2135BC25000EData
    [javac] xmlDocument.setParameter("c_invoice_id", TransactionFF8080812F213146012F2135BC25000EData.selectActPFF8080812F348A97012F349DC24F0007_c_invoice_id(this));
    [javac] ^
    [javac] 2 errors

The problem is that ActionButtonSQLDefaultData java class doesn't exist.
Like a note, I have to say that in the xsql OF THE WINDOW IN WHICH THE PROCESS IS CALLED have been created the query selectActPFF8080812F348A97012F349DC24F0007_c_invoice_id.
No tags attached.
blocks defect 00184143.0MP4 closed marvintm Problems with WAD and default values in parameters for Bundle Process 
Issue History
2011-09-02 08:16jecharriTypedefect => backport
2011-09-02 08:16jecharrifix_in_branch => 2.50
2011-09-02 08:16jecharriWeb browserGoogle Chrome => Google Chrome
2011-09-02 08:16jecharriversionpi => 2.50MP33
2011-09-02 08:16jecharriTarget Version3.0MP4 => 2.50MP35
2011-09-02 09:15jecharriWeb browserGoogle Chrome => Google Chrome
2011-09-02 09:15jecharriSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2656#r2656
2011-10-04 17:41jonalegriaesarteAssigned Toalostale => marvintm
2011-10-10 13:13egoitzWeb browserGoogle Chrome => Google Chrome
2011-10-10 13:13egoitzPriorityurgent => high
2011-10-10 13:13egoitzSeveritymajor => minor
2011-10-10 17:02hgbotCheckin
2011-10-10 17:02hgbotNote Added: 0041570
2011-10-10 17:02hgbotStatusscheduled => resolved
2011-10-10 17:02hgbotResolutionopen => fixed
2011-10-10 17:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/7b2c15316242cea0d946bc14d4e5ab9b83d01e56 [^]
2011-10-14 12:49xabiermerinoNote Added: 0041838
2011-10-14 12:49xabiermerinoStatusresolved => closed

Notes
(0041570)
hgbot   
2011-10-10 17:02   
Repository: erp/stable/2.50
Changeset: 7b2c15316242cea0d946bc14d4e5ab9b83d01e56
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Oct 10 17:01:29 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/7b2c15316242cea0d946bc14d4e5ab9b83d01e56 [^]

Fixed issue 18415. Now the sqlc method will be generated even if the process doesn't have a menu entry.

---
M src-wad/src/org/openbravo/wad/ProcessRelation_data.xsql
---
(0041838)
xabiermerino   
2011-10-14 12:49   
verified