Using javascript to return a calculated value from DOORS.
![]() Hi,
I am building a csv file searching for pairs (regex, DOORS module), without repetition, in a whole project (every module, every object).
In the last paragraph of my template, I have defined an assigment to a variable as:
const regex = "/{{\w+;\w+}}/g";
var finalCSVfile = "";
while (myArray = Object_Text.toString().match(regex) != null) {
temp = myArray[0] + ',' + Name;
if (finalCSVfile.indexOf(temp) == -1) {
finalCSVfile += temp + '\n';
}
}
However, do not know how to assign it to the RPE variable. 'return finalCSVfile;' fails.
Thanks for any help.
|
Comments
Almost solved.