【问题标题】:Filtering using advanced filter in a DOORS module在 DOORS 模块中使用高级过滤器进行过滤
【发布时间】:2020-02-12 19:36:57
【问题描述】:

我是 dxl 的新手。在这里,我试图通过将高级过滤器应用于 Excel 表来从 DOORS 中的正式模块中提取一些属性。

  • 手动方法:

应用的过滤器是:

1.In 属性 = "Customer_ContentType" = "需求"

2.In Links -> 没有in 链接也没有out 链接

然后我们将过滤后的内容导出到excel,去掉主要内容,使用需要的属性列。

我为解决这个问题而编写的 dxl 脚本没有给出预期的结果。

我试图通过在门中应用过滤器来获取所需的数据。但是我在使用 DXL 脚本时遇到了问题

代码:

    Filter req = attribute "Customer_ContentType" == "Requirement"
    Filter link = no in-link && no out-link
    Filter crsfilter =  (req && link)
    filtering on  
    addFilter(crsfilter)
    set( crsfilter)
    refresh current

//然后脚本添加到excel表

预期输出: 列出以下内容的 excel 表:

只有这些不包括主要内容的值应该被提取到excel中。

使用此功能我无法获得此输出,我收到错误并通过阻止进一步执行而退出。

【问题讨论】:

  • 好的,那么您的问题是哪一个?
  • @DavidGarcíaBodego ,我正在使用的这个功能有问题,所以过滤不起作用,请您提出一些改进建议。

标签: excel loops filter ibm-doors


【解决方案1】:

如果这是您的代码的准确副本:

Filter req = attribute "Customer_ContentType" == "Requirement"
Filter link = no in-link && no out-link
Filter crsfilter =  (req && link)
filtering on  
addFilter(crsfilter)
set( crsfilter)
refresh current

您需要查看“hasNoLinks”过滤器

Filter req = attribute "Customer_ContentType" == "Requirement"
Filter link = hasNoLinks(linkFilterBoth,"*")
Filter crsfilter = ( req && link )
filtering on
addFilter ( crsfilter )
refresh current

如果我正确理解了您的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-05-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-02
    相关资源
    最近更新 更多