使用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
相关问答
更多-
在使用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 然后让他把这个脚本放在一个特定 ...
-
NSOpenPanel表现得很奇怪(NSOpenPanel acting weird)[2022-07-25]
我发现了问题。 事实证明,在我的项目中,我重新定义了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 ...
-
在horizontalLayout中的表格之间拖放不起作用(Drag and Drop between tables in horizontalLayout doesn't work)[2023-10-15]
题外话:你为什么有@Theme("valo")在你的看法? 据我所知,它与UI类一起使用...... 在话题: 正如我在评论中所说的,我不认为它与HorizontalLayout有关。 您可能误解了拖动源并删除了目标概念,或者它只是在代码中滑落。 正如在文档中描述的那样, 拖动从源开始,并且丢弃目标上的数据的事件由DropHandler处理。 如果你看看你的源代码,例如DoneTableHandler ,你可以看到 if (t.getSourceComponent() != doneTable && dro ...