Hi I have a custom report that I have written specifically for exporting requirements into a standad format for our Change Mgmt process. The report is a sub routine I have that is exected via an excel icon I have added to the Requirements Module.The report wirks great except 2 issues:
1) I want only the requirements that are in the selected folder to be on the report.
2) The selected Release and Cycle is not reported even though there are values in those fields
Here is a cut down version of the code I execute:
I am running version 11.00
Set ireqF = TDConnection.ReqFactory.Filter
Set ListsOfReqs = ireqF.NewList()
' Start Excel Application
Set app = createobject("Excel.Application")
app.Visible = true
Set exportWk = app.workbooks.add
exportWk.Sheets("Sheet1").Delete
exportWk.Sheets("Sheet2").Delete
Set exportSheet = exportWk.Sheets.Add
exportSheet.Name = "Requirements"
For each req in ListsOfReqs
' Only print out non-Folder rows
if not req.Field("RQ_TYPE_ID") = "Folder" then
set listofReleases = req.Field("RQ_TARGET_REL")
set listofCycles = req.Field("RQ_TARGET_RCYC")
TargetRelease = ""
TargetCycle = ""
For relvalue = listofReleases.Count To 1 Step -1
TargetRelease = listofReleases(relvalue).Name & " "
Next
for cycvalue = listofCycles.Count To 1 Step -1
TargetCycle = listofCycles(cycvalue).Name & " "
Next
msgbox "Relese is: " & TargetRelease
msgbox "Cycles are: " & TargetCycle
end if
Next