using result from a stored procedure with parameters as value for gauge chart - crystal reports in asp.net application

后端 未结 1 1804
温柔的废话
温柔的废话 2021-01-13 16:21

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

1条回答
  •  甜味超标
    2021-01-13 16:42

    1. 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;

    2. 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;

    3. Build the report

    3a. Ensure that stored procedures will be visible in the Database 'Expert'

    enter image description here

    3b. Add the stored procedure to the report

    enter image description here

    3c. Add Chart

    Insert | Chart... | Type tab | Gauge, then Data tab

    enter image description here

    1. The result

    enter image description here

    0 讨论(0)
提交回复
热议问题