Hi,
I'm have an existing column "Justify-old" that was previously a free text column. I have created a new enumeration column "Justify" with values "Safety" , "Technical", "Information", "Redundant".
I want to create dxl that will review the values currently in column "A" and pick a enumeration value in column "B" based on those words. i.e. if column "A" contains the word "Safety" (ignoring case of the word) it will populate the enumeration with the value "Safety".
I have put the "If(exists" in as I have previous DXL to create the new "Justify" enumeration column.
I tried the following but no luck:
Module m = current
Object o = null
for o in m do{
if (exists attribute "Justify")
justOld = o."Justify-old" ""
if findPlainText(justOld, "Safety", offset, length, false, false){
o."Justification" = "Safety"
}
elseif findPlainText(justOld, "Technical", offset, length, false, false){
o."Justifiacation" = "Technical"
}
elseif findPlainText(justOld, "Information", offset, length, false, false){
o."Justifiacation" = "Information"
}
elseif findPlainText(justOld, "Redundant", offset, length, true, false){
o."Justifiacation" = "Redundant"
}
elseif findPlainText(justOld, "", offset, length, true, false){
o."Justifiacation" = ""
}
}
#Support#EngineeringRequirementsManagement#SupportMigration#DOORS#Sustainability