Hello, I seem to be having problems one after another. I have input control of multiselect query called MULTI. P{USE_EXTENDED} is just simple normal parameter.. I want to do following: Code: declare dummy number(12);begin // Get db-id for populated report data select sq_id.nextval into dummy from dual; //Populate data for-each value of MULTI select prepare_report_data(dummy, a.id, $P{USE_EXTENDED}) from a where $X{IN, a.id, MULTI};end;[/code] That block is not working (unable to get next...) If that is done in single SQL statement without db-id it works: Code: select prepare_report_data( a.id, $P{USE_EXTENDED}) from a where $X{IN, a.id, MULTI}[/code] So is the problem in multiple statements? Im using ora10g database. Post Edited by andde at 01/02/2012 09:40 Post Edited by andde at 01/02/2012 09:40