首页 \ 问答 \ 使用SSRS中的条件来获得可见性(using conditionals in SSRS for visibility)

使用SSRS中的条件来获得可见性(using conditionals in SSRS for visibility)

在我创建的SSRS(BIDS)2008报告中,我有一个条件语句,我试图用来确定列中项目的可见性。

与此类似的表达式在“常规”选项卡上有效,但在“可见性”选项卡上则无效。 尝试预览报表时出现以下错误

本地报告处理期间发生错误。 文本框“状态”中使用的隐藏表达式返回了无效的数据类型。

我已粘贴以下条件供您参考。 可见性表达式的规则/格式是否与“常规”选项卡的规则/格式不同? 谢谢!

=IIf(Fields!tagname.Value="3981.CompA1.Bool.CompA1StatusOnline"
And Fields!Status.Value="0","True",
iif(Fields!tagname.Value="3981.CompA1.Bool.CompA1StatusFaulted"
And Fields!Status.Value="1","True",
iif(Fields!tagname.Value="3981.CompA1.Bool.CompA1StatusOffline"
And Fields!Status.Value="0","True","False")))

In a SSRS (BIDS) 2008 report that I have created, I have a conditional statement I'm trying to use to determine the Visibility of items in a column.

An expression almost identical to this works on the General tab, but not on the Visibility tab. I get the following error when trying to preview the report

An error occurred during local report processing. The Hidden expression used in textbox 'Status' returned a data type that is not valid.

I have pasted the conditional below for your reference. Do the rules/formatting for Visibility expressions differ from those of the General tab? Thanks!

=IIf(Fields!tagname.Value="3981.CompA1.Bool.CompA1StatusOnline"
And Fields!Status.Value="0","True",
iif(Fields!tagname.Value="3981.CompA1.Bool.CompA1StatusFaulted"
And Fields!Status.Value="1","True",
iif(Fields!tagname.Value="3981.CompA1.Bool.CompA1StatusOffline"
And Fields!Status.Value="0","True","False")))

原文:https://stackoverflow.com/questions/15126166
更新时间:2023-04-29 17:04

相关问答

更多
  • 在使用beginSheetModalForWindow:completionHandler:显示面板之前,使用beginSheetModalForWindow:completionHandler: 它在文档中指定。 NSOpenPanel子类NSSavePanel所以你也可以使用这些方法。 You set this using setDirectoryURL before displaying the panel with beginSheetModalForWindow:completionHandler ...
  • 我很抱歉地报告:没有一个(或者至少没有一个不是临时权利)。 我特意向苹果公司询问了这一点,他们说这种能力“破坏了应用沙盒的目的”。 如果您想要在没有任何临时权利的情况下执行此操作,唯一的方法是让用户编写像这样的AppleScript文件: tell application "System Events" keystroke "e" using {command down, option down, control down, shift down} end tell 然后让他把这个脚本放在一个特定 ...
  • 我发现了问题。 事实证明,在我的项目中,我重新定义了NSTableView,这导致了所有错误。 I found the problem. It turns out in my project I had redefined NSTableView and that was causing all the errors.
  • 我有完全相同的问题,10.9以下,非沙盒,并花了这个DAY的更好的部分试图找到一个解决方案! 经过很多修补和深入研究构成NSOpenPanel的各个类( NSSavePanel是NSSavePanel )后,我确实找到了一种方法来强制基础表刷新自己: id table = [[[[[[[[[[[[_openPanel contentView] subviews][4] subviews][0] subviews][0] subviews][0] subviews][7] subviews][0] subvi ...
  • 您无需呼叫终端并打开窗口。 'do shell script'已在后台打开一个shell会话,在终端中不可见。 你必须在'try / end try'块中使用它,以避免脚本在发生错误时停止(比如没有文件授权!) 你也使用带有选项v(详细)的'srm'。 此选项用于显示正在执行的操作,但由于您正在关闭窗口,因此您看不到它。 当您的文件路径包含必须在shell中转义的特殊字符时,您的脚本可能出现问题。 为避免这种情况,请使用'引用形式'。 脚本波纹管测试好了: on run set the_file to ch ...
  • 于Debian / Ubuntu 这可能是Debian / Ubuntu版本中的错误。 我发现以下两个错误报告似乎与您的错误相符: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653915 https://bugs.launchpad.net/ubuntu/+source/netbeans/+bug/944857 总结错误报告:似乎还没有真正解决这个问题,但是对于一些使用以下命令启动NetBeans的人来说是一种解决方法: $ netbeans -cp: ...
  • 在xcode中禁用我的异常断点对我有用。 或者尝试禁用所有断点。 资料来源:在http://cyborgdino.com/2012/02/nsopenpanel-displaying-a-file-open-dialog-in-os-x-10-7/#comment-702博客上回答同一张海报 Disabling my exception breakpoint in xcode worked for me. Or try just disabling all breakpoints. Source: answ ...
  • 自从我发布这个问题以来,Apple似乎已经更新了它的文档。 该功能现在在“相关项目”部分的“应用程序沙箱设计指南”中进行了描述: App Sandbox的相关项目功能允许您的应用访问与用户选择的文件同名但具有不同扩展名的文件。 此功能由两部分组成:应用程序的Info.plist文件中的相关扩展列表以及告诉沙箱您正在执行的操作的代码。 有两种常见情况: [...] 在这两种情况下,您必须对应用程序的Info.plist文件进行少量更改。 您的应用程序应该已经声明了一个文档类型( CFBundleDocumen ...
  • 我很确定你在这里寻找的答案是你最终想要使用基于块的完成处理程序来调用api而不是runModal。 当涉及到NSOpen / SavePanel和沙盒应用程序时,苹果有意或无意地将遗留的runModal api以各种方式打破。 i'm pretty sure that the answer you're looking for here is that ultimately you want to use the block based completion handler calling api inst ...
  • 题外话:你为什么有@Theme("valo")在你的看法? 据我所知,它与UI类一起使用...... 在话题: 正如我在评论中所说的,我不认为它与HorizontalLayout有关。 您可能误解了拖动源并删除了目标概念,或者它只是在代码中滑落。 正如在文档中描述的那样, 拖动从源开始,并且丢弃目标上的数据的事件由DropHandler处理。 如果你看看你的源代码,例如DoneTableHandler ,你可以看到 if (t.getSourceComponent() != doneTable && dro ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。