如何使用@formula或lotusscript隐藏视图中的总计行
我想使用 @formula 或 Lotusscript 隐藏视图中的总计行。
我该怎么做?
I want to hide the grand total row in views using @formula or lotusscript.
How should I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有公式或 LotusScript 用于在视图中隐藏总计,但我找到了一种解决方法,用于处理总计根本没有商业意义并且只会让用户感到困惑的情况。
使用
显示单个类别
将视图显示为表单中的嵌入视图,从而忽略总计行。您可能只需要将此视图用作嵌入视图,否则对所有文档都使用无用的固定类别(即将"1"
放入分类列的公式中,并在Show single 中使用相同的内容)类别
)。您还需要具有默认值"0"
的SaveOptions
文本字段,这样用户就不会收到询问是否要保存文档的对话框(毕竟,对于(这是一个视图)和QuerySave
事件中的Continue = False
行。然后,您需要找到如何最好地将其与其他视图集成 - 如果您的应用程序使用框架集,则可以在表单属性中使用
自动框架
。用户可能无法区分。从视图中删除一行似乎需要做很多工作,但我不知道隐藏它的另一种方法,有时增加复杂性是值得的。
这有帮助吗?
There's no Formula or LotusScript for hiding the grand total in a view, but I found a work-around for the cases where the grand total does not make business sense at all and would only confuse the users.
Displaying the view as an embedded view in a form, using
Show single category
leaves out the grand total row. You may need to use this view only as embedded view and have otherwise useless fixed category for all documents (i.e. put"1"
in the formula for the categorized column and use the same inShow single category
). You'll also need theSaveOptions
text field with default value"0"
so the users don't get dialog asking whether they want to save the document (after all, for them this is a view) and the lineContinue = False
in theQuerySave
event.Then you need to find how to best integrate this with the other views - maybe use
Auto frame
in the form properties if your application uses framesets. The users may not be able to tell the difference.Seems like a lot of work for removing one line from the view but I am not aware of another way to hide it and sometimes it's worth the added complexity.
Does that help?
您还可以使用 @SetViewInfo 来创建“按类别过滤”视图,第一列的值为“1”,并按此值进行过滤。将显示所有文档,仅隐藏总金额。
You can also create a Filtered By Category view by using @SetViewInfo with first column with value "1" and filter by this values. All documents will be displayed only total sum will be hidden.