pcouas_1 Posted March 11, 2016 Share Posted March 11, 2016 Hi,I have define an first parameter name isGrpMoreTweleve like this with default value expressionBoolean(((int) ((new java.text.SimpleDateFormat("dd/MM/yyyy").parse($P{periodeFin}).getTime() -new java.text.SimpleDateFormat("dd/MM/yyyy").parse($P{periodeDebut}).getTime())/(1000*60*60*24)))>365 ? true:false) AND i want use it($P{isGrpMoreTweleve} ? "nvl(decode ((TRUNC((to_number(to_char(iv.inventory_date, 'MM'))-1) / 3)+1), 1,'First Quarter',2,'Second Quarter',3,'Third Quarter',4,'Fourth Quarter', ''),'') || '-' || to_char(iv.inventory_date, 'YYYY')" : "to_char(iv.inventory_date,'MON-YYYY')")This second value expression is NOT OkWhy ?RegardPhil Link to comment Share on other sites More sharing options...
mlopez_1 Posted March 11, 2016 Share Posted March 11, 2016 The second has some SQL syntax that does not execute at java level.Regards, Mariano Link to comment Share on other sites More sharing options...
pcouas_1 Posted March 16, 2016 Author Share Posted March 16, 2016 Resolved Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now