Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

Handling the Error: The field RQ_REQ_STATUS cannot be used with a .

$
0
0

Hi , i am trying to extract requirements using the function GetChildrenList(id), the following is my code:

Sub ()

....

..

Set rfact1 = QCConnection.ReqFactory
Set rfilter1 = rfact1.Filter
rfilter("RQ_TYPE_ID") = "Functional" Or "Folder" Or "User Story"
rfilter1.KeepHierarchical = True
father_id1 = 81
GetChildren1 rfact1, rfilter1, father_id1

 

end sub

 

Sub GetChildren1(rfactr2, rfilterr2, father_idr2)


Set Childrenr1 = rfactr2.GetFilteredChildrenList(father_idr2, rfilterr2)

For Each Childr1 In Childrenr1

MsgBox(Childr1.field("RQ_REQ_STATUS"))  'Err: The field cannot be used with the type <Folder>

MsgBox(Childr1.field("RQ_USER_TEMPLATE_16"))  'Err: the field cannot be  used with the type <Folder>

MsgBox(Childr1.field("RQ_REQ_NAME")) 'this is working fine

GetChildren1 rfactr2, rfilterr2, Childr1.ID

Next

 

end sub

 

Could you please help me fix this errors..thanks

 

 


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>