Quality Center 过滤器和收藏夹操作

发布于 2024-12-01 19:01:59 字数 617 浏览 2 评论 0原文

我正在尝试更改缺陷模块中当前用户显示的过滤器。

我已经使用过滤器设置了“tdc.BUGFactory.Filter”对象,我可以访问数据,但我无法强制将其显示给用户!知道如何做到这一点吗?

如果我使用 SQL 命令将其存储在公共设置表中,是否可以调用一个操作来加载我为用户创建的“收藏夹”视图?

谢谢, 阿什拉夫

===================================================== ===============

我找到了答案,但是 stackoverflow 不允许我发布它:

我通过 SQA 论坛找到了答案,要强制使用以下过滤器,

Set defectFilter = tDConenction.BugFactory.Filter ' Example to set a filter criteria
defectFilter.Field ("BG_DETECION_DATE") = "[Today]" 
SetDefectsFilter defectFilter.Text 
Set defectFilter = Nothing

还有一个名为 GetDefectsFilter() 的函数,用于获取当前过滤器

I am trying to change the filters in the display of the current user in the Defects module.

I have set the "tdc.BUGFactory.Filter" object with my filter and i can access the data, but i cannot force it to be displayed to the user! any idea on how to do that?

If i use a SQL command to store it in the common settings table, would it be possible to call an action to load the "Favorites" view i created to the user?

Thanks,
Achraf

================================================================

I found the answer, however stackoverflow doesn't allow me to post it:

I fonud the answer through SQA Forums, to force a filter you use the following

Set defectFilter = tDConenction.BugFactory.Filter ' Example to set a filter criteria
defectFilter.Field ("BG_DETECION_DATE") = "[Today]" 
SetDefectsFilter defectFilter.Text 
Set defectFilter = Nothing

There is also a function called GetDefectsFilter() which gets the current filter

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文