使用带有参数的存储过程的结果作为仪表图的值 - asp.net 应用程序中的水晶报告 [英] using result from a stored procedure with parameters as value for gauge chart - crystal reports in asp.net application

查看:8
本文介绍了使用带有参数的存储过程的结果作为仪表图的值 - asp.net 应用程序中的水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个存储过程,它接受 2 个参数并返回一个整数值.我希望这个值成为页面上仪表图的值.这 2 个参数将根据所选项目的属性而变化.有没有一种简单的方法可以将存储过程中的一个值传递给图表以显示?这将嵌入在 asp.net 应用程序 (vb) 中 - 因此根据先前选择的项目,参数和结果的值将发生变化.谢谢你的帮助.

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 will change depending on the attributes of the selected item. Is there a simple way to pass the one value from the stored procedure to the chart to display? This will be embedded in an asp.net application (vb) - so depending on the previously selected item, the values for the parameters and result will change. thank you for your help.

推荐答案

  1. 创建包

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);

结束报告;

创建存储过程

创建或替换程序 BARFOO (一个 INTEGER DEFAULT NULL,两个 INTEGER DEFAULT NULL,三进出报告.query_results) 作为开始

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 ;

结束酒吧;

生成报告

3a.确保存储过程在数据库专家"中可见

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

3b.将存储过程添加到报表中

3b. Add the stored procedure to the report

3c.添加图表

插入 |图表... |类型选项卡 |仪表,然后是数据选项卡

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

  1. 结果

这篇关于使用带有参数的存储过程的结果作为仪表图的值 - asp.net 应用程序中的水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆