Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011667Openbravo ERP00. Application dictionarypublic2009-12-07 11:002010-01-22 12:36
networkb 
alostale 
urgentminoralways
closedfixed 
5
2.40MP11 
2.40MP13 
Core
No
0011667: It is not possible to add a default value for Dates parameter
When a date parameter is included in a Process (Application Dictionary > Report and Process > Parameter), and a default value is used diferent from @#Date@, a compilation error is shown.

IE, this Default value is used: @SQL=SELECT (NOW()+90) FROM DUAL. And this is error is shown:

    [javac] /opt/Openbravo240mp11/r2.40mp11/srcAD/org/openbravo/erpCommon/ad_actionButton/ActionButton_Responser.java:1099: cannot find symbol
    [javac] symbol : variable Data
    [javac] location: class org.openbravo.erpCommon.ad_actionButton.ActionButton_Responser
    [javac] xmlDocument.setParameter("DateFrom", Data.selectActP800171_DateFrom(this));
    [javac] ^
    [javac] 1 error

Note: other querys have been tested (using SQL) and same error appears.
As System Administrator, go to Application Dictionary > Report and Process.
Search Purchase Order Report
Go to Parameter tab.
Search Starting date.
As default value, enter: @SQL= SELECT (NOW()+90) FROM DUAL
Compile the application. (ant compile.development -Dtab=xx)
No tags attached.
blocks defect 00116532.40MP13 closed alostale It is not possible to add a default value for Dates parameter 
Issue History
2009-12-07 19:25psarobeTypedefect => backport
2009-12-07 19:25psarobefix_in_branch => 2.40
2009-12-09 08:47rafarodaPriorityimmediate => urgent
2009-12-10 11:36rafarodaAssigned Torafaroda => alostale
2010-01-13 15:51hgbotCheckin
2010-01-13 15:51hgbotNote Added: 0023395
2010-01-13 15:51hgbotStatusscheduled => resolved
2010-01-13 15:51hgbotResolutionopen => fixed
2010-01-13 15:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/b96c00ad4f93e5bc74b6066e5df3010f15ea71f4 [^]
2010-01-14 12:25networkbNote Added: 0023419
2010-01-22 12:36marvintmStatusresolved => closed

Notes
(0023395)
hgbot   
2010-01-13 15:51   
Repository: erp/stable/2.40
Changeset: b96c00ad4f93e5bc74b6066e5df3010f15ea71f4
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jan 13 15:51:30 2010 +0100
URL: http://code.openbravo.com/erp/stable/2.40/rev/b96c00ad4f93e5bc74b6066e5df3010f15ea71f4 [^]

fixed bug 11667: It is not possible to add a default value for Dates parameter

---
M src-wad/src/org/openbravo/wad/ProcessRelation_data.xsql
M src-wad/src/org/openbravo/wad/Wad.java
M src-wad/src/org/openbravo/wad/WadActionButton.java
A src-wad/src/org/openbravo/wad/ActionButtonDefault_data.xml
A src-wad/src/org/openbravo/wad/ActionButtonDefault_data.xsqlxml
---
(0023419)
networkb   
2010-01-14 12:25   
Tested and works properly