Monatsarchive: Oktober 2015

IBM Doors DXL: Remove all Triggers from a module

Problem All triggers, that are on a module, shall be deleted. Approach – Ansatz Iterate trough all module triggers Delete trigger by using trigger reference Lösung – Solution void removeAllTriggersOnModule(Module mod) { Module oldCurrent = current; current=mod; Trigger t; for … Weiterlesen

Veröffentlicht unter DXL, IBM DOORS | Hinterlasse einen Kommentar

IBM Doors DXL: Check if Module/Object DataType or Attribute exists

Problem The existence of DataTypes or Attributes shall be checked Approach – Ansatz The first function uses the find-function to check for attributes The second uses a loop to check for datatypes Solution – Lösung bool attributeExists(Module tgt, string attributeName) … Weiterlesen

Veröffentlicht unter DXL, IBM DOORS | 3 Kommentare

IBM Doors DXL: Rename Module/Object DataType or Attribute

Problem The name of a DataType or an attribute shall be changed. Ansatz – Approach The modify function can be used to rename the functions Solution – Lösung void renameDataType(Module mod, string oldString, string newString) { AttrType at = find(mod, … Weiterlesen

Veröffentlicht unter DXL, IBM DOORS | Hinterlasse einen Kommentar

IBM Doors DXL: Rename/Replace Enumeration Value of a DataType – Enumerationswert ändern

Problem An existing enumeration value should be renamed or replaced Approach – Ansatz We have to iterate through the Type-Array and repopulate new arrays, which will be used as parameters for the modify function Solution – Lösung //This program was … Weiterlesen

Veröffentlicht unter DXL, IBM DOORS | Hinterlasse einen Kommentar

IBM Doors DXL: Folder- or Formal Module Browser/Picker (based on smartdxl.de)

Problem The Mini Explorer Script from SmartDXL.de allows to create a Browse/Select Dialoges on a project and select Modules. It can be customized dependend on the requested item type. Approach Customization of the script Solution – Lösung This Mini Explorer … Weiterlesen

Veröffentlicht unter Allgemein | Hinterlasse einen Kommentar