Have created a script to pull report detail from Test logs. However!
everything looks as if it works as it should, no errors reported. you follow it through on the debugger and it says it’s going through the correct steps:
'Only add Detail section for "Detailed Reports"
If repType = "Detailed Report" Then
Call rBody.BeginSection(tDoc.GetFirstItem("TestArea").Text+" Detail")
foundSection = rtNav.FindLastElement(6)
If foundSection = True Then
Set rtDetail = tDoc.GetFirstItem("TestAreaDetail")
If rtDetail.Type = RICHTEXT Then
Call rBody.AppendRTItem(rtDetail)
End If
End If
Call rBody.EndSection
Call rBody.AddNewLine(1)
End If
So, in theory this should create a collapsable section within a richtext item (rBody) on a NotesDoc (rDoc) and add the contents of the TestAreaDetail (RT)Field from the Test Document (tDoc)… Like I say follow the debugger through and it all appears to be working…
However, when you review the completed article you’ll see that most of the Detail has not copied - i.e. blank sections. Either that or the data which has come across is incomplete and starts half way through the field as it
appears on the Test Doc… CONFUSED!!
Any suggestions welcome!!!