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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0011667
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 00. Application dictionaryminoralways2009-12-07 11:002010-01-22 12:36
ReporternetworkbView Statuspublic 
Assigned Toalostale 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branch2.40Fixed in SCM revisionb96c00ad4f93
ProjectionnoneETAnoneTarget Version2.40MP13
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.40MP11SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0011667: It is not possible to add a default value for Dates parameter

DescriptionWhen 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.
Steps To ReproduceAs 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)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00116532.40MP13 closedalostale It is not possible to add a default value for Dates parameter 

-  Notes
(0023395)
hgbot (developer)
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 (developer)
2010-01-14 12:25

Tested and works properly

- Issue History
Date Modified Username Field Change
2009-12-07 19:25 psarobe Type defect => backport
2009-12-07 19:25 psarobe fix_in_branch => 2.40
2009-12-09 08:47 rafaroda Priority immediate => urgent
2009-12-10 11:36 rafaroda Assigned To rafaroda => alostale
2010-01-13 15:51 hgbot Checkin
2010-01-13 15:51 hgbot Note Added: 0023395
2010-01-13 15:51 hgbot Status scheduled => resolved
2010-01-13 15:51 hgbot Resolution open => fixed
2010-01-13 15:51 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/b96c00ad4f93e5bc74b6066e5df3010f15ea71f4 [^]
2010-01-14 12:25 networkb Note Added: 0023419
2010-01-22 12:36 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker