显示 SSRS 参数验证的弹出警报
我正在编写一份 SSRS 报告,其中包含 From &截止日期作为输入参数,必须对其进行验证,以便起始日期不能大于截止日期。
我成功地创建了一个负责验证的自定义 VB 代码,但问题是当验证失败时,我需要显示一个用户友好的弹出警报,但我无法做到这一点。我尝试使用 MsgBox (VB.NET) 发出警报,也尝试在 javascript 中调用 Response.Write,但这些都不起作用。 帮我完成这件事。
I am working on a SSRS report which has From & To date as input parameters and it has to be validated such that From date can't be more than To date.
I was successful in creating a custom VB code which takes care of validation but the problem is when the validation fails i need to display a user friendly pop up alert which i am not able to do. I tried giving the alert using MsgBox (VB.NET) and also tried calling Response.Write inside javascript, but none of these works.
Help me in getting this done.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以按照以下步骤来实现此目的。
公共函数 SelectedMore( ParamCnt As Integer ) As Boolean
Dim Cnt 作为布尔值
Cnt = IIf(ParamCnt < 4 , 1, 0)
返回计数
结束功能
Following are the steps that you can follow to achieve this.
Public Function SelectedMore( ParamCnt As Integer ) As Boolean
Dim Cnt As Boolean
Cnt = IIf(ParamCnt < 4 , 1, 0)
Return Cnt
End Function