【问题标题】:How do I delete multiple rows at once in DOORS?如何在 DOORS 中一次删除多行?
【发布时间】:2019-02-20 17:50:46
【问题描述】:

背景

我正在从 DOORS 文件中删除过时的信息行。我知道如何删除行的方法是通过以下过程一次删除一行:

  1. 选择我要删除的行
  2. 打开表格菜单
  3. 请点击删除选项
  4. 点击选项
  5. 对每一行重复。

问题

有没有办法在 DOORS 中一次批量删除多行?

【问题讨论】:

    标签: ibm-doors


    【解决方案1】:

    所以,这比看起来要复杂一些,主要是因为 DOORS 不允许在没有 DXL 脚本的情况下不按顺序选择项目。

    如果我这样做,我会做以下事情:

    首先,将要删除的每一行的第一个元素设置为可识别的内容-例如,“||DELETED||”

    接下来,我将运行以下代码:

    // Use the current module
    Module m = current
    // Grab the first object
    Object o = first ( m )
    // Loop through the objects in the module - using a deletion in the loop, so no for o in m
    while ( !null o ) {
        // Check for our deletion flag
        if ( o."Object Text" "" == "||DELETED||" ) {
            // Grab the parent object - this will actually be the 'row object'
            Object oP = parent ( o )
            // Set 'o' to point to the object right before the deletion (to allow loop to continue)
            o = previous ( parent ( o ) )
            // Softdelete that row object
            softDelete ( oP )
        }
        // Go to the next object (on the last object, will set equal to null)
        o = next ( o )
    }
    

    这可能不是解决这个问题的最佳方式——我一直想尝试一下 GUI 中的非顺序选择。但它应该能完成你想做的事情。

    【讨论】:

    • 我无法对此进行测试,因为在我的工作地点,我无权创建这样的综合 DXL 脚本。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-07-27
    • 2016-11-08
    • 1970-01-01
    • 2016-05-19
    • 1970-01-01
    • 2013-07-24
    • 1970-01-01
    相关资源
    最近更新 更多