menghile01 Posted September 14, 2012 Share Posted September 14, 2012 Hi, excuse me for my english...I have to pass integer values ​​to a query, these values ​​will get from this additional query : SELECT DISTINCTsubstr(char(PERIODO_RIFERIMENTO),1,4)||'-'||substr(char(PERIODO_RIFERIMENTO),5,2)||'-'||substr(char(PERIODO_RIFERIMENTO),7,2)as DATE_PER_RIF,PERIODO_RIFERIMENTOFROMDSTBG00Fwhere [PERIODO_RIFERIMENTO] is the integer value i want to use I create a parameter of type "java.util.collection" for use in a further query according to this scheme :SELECT * FROM ORDERS WHERE $X{IN,PERIODO_RIFERIMENTO, PERIODO_RIFERIMENTO}unfortunately java.util.collecion does not allow you to use variables of type integer, how can I fix it?thanks in advanceStefano Baricchi Link to comment Share on other sites More sharing options...
wanatchapong Posted September 17, 2012 Share Posted September 17, 2012 Hi, Stefano BaricchiYou can insert attribute nestedType to parameter tag in your jrxml <parameter name="paramAbc_Id" class="java.util.Collection" nestedType="java.lang.Integer"> <defaultValueExpression><![CDATA[ ]]></defaultValueExpression></parameter> reference Jasper report schemahttp://jasperreports.sourceforge.net/schema.reference.html#parameter Good luck Stefano Baricchi /tools/fckeditor/editor/images/smiley/msn/wink_smile.gif Link to comment Share on other sites More sharing options...
autocopiante Posted July 28, 2014 Share Posted July 28, 2014 add this code in xml and it worked, I hardly the solution. << NestedType = "java.lang.Integer" >> many thanks add this code in xml and it worked, I hardly the solution. << NestedType = "java.lang.Integer" >> many thanks wanatchapong Link to comment Share on other sites More sharing options...
vinothkumarneptunesoftwar Posted August 3, 2018 Share Posted August 3, 2018 Hi Is it possible to pass the Collection to oracle Stored Procedure 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