I have a stored procedure that takes in 2 parameters and returns an integer value. I would like this value to be the value for a gauge chart on the page. The 2 parameters wi
Create the package
CREATE OR REPLACE PACKAGE REPORTING AS
type query_results is ref cursor;
PROCEDURE barfoo (one IN INTEGER, two IN INTEGER, three IN OUT REPORTING.query_results);
END REPORTING;
Create the stored procedure
CREATE OR REPLACE PROCEDURE BARFOO ( one IN INTEGER DEFAULT NULL, two IN INTEGER DEFAULT NULL, three IN OUT reporting.query_results ) AS BEGIN
open three for select one + two total from dual ;
END BARFOO;
Build the report
3a. Ensure that stored procedures will be visible in the Database 'Expert'
3b. Add the stored procedure to the report
3c. Add Chart
Insert | Chart... | Type tab | Gauge, then Data tab