Why does DOORS show an error when creating a new Object in a Module via DXL?

…衆ロ難τιáo~ 提交于 2019-12-24 07:49:34

问题


I need to add occasionally Objects to a Module, depending on the needs via DXL for IBM DOORS. Only sometimes when trying to do this:

    Object newObj
    if (last(m) == null){
        newObj = create(m)
    } else {
        newObj = create(last(m))
    }

An error in line newObj = create(last(m)) appears saying that the "Creation of objects is not the current Module**. It is once again strange, as sometimes appears, and sometimes not...I guess depending on the Module "status", maybe previously has not been correctly closed and editing now is impossible...I do not know what to do...Some hints?


回答1:


depends on what "sometimes" means. If m is not the current module, you can make it so with the statement

current = m


来源:https://stackoverflow.com/questions/56125653/why-does-doors-show-an-error-when-creating-a-new-object-in-a-module-via-dxl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!