问题
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