Hi guys,
I've been searching the boards and trying to use old posts to help me set this up but I can't seem to get it working. Basically I created a User field in the requirements module and I want this to display in QC when I am in the requirements module, but the code I have written won't work. Can anybody see where I've gone wrong?
Sub SetFieldApp(FieldName, Vis, Req, PNo, VOrder)
'On Error Resume Next
'Sets a field's appearance
With Req_Fields(FieldName)
.IsVisible = Vis
.IsRequired = Req
.PageNo = PNo
.ViewOrder = VOrder
End With
'On Error GoTo 0
End Sub
Sub RequirementField_Set
' Subroutine to set field appearance
SetFieldApp "RQ_REQ_NAME" ,True, True, 0, 1 'System Field - Name (Mandatory)
SetFieldApp "RQ_TYPE_ID" ,True, True, 0, 2 'System Field - Type (mandatory)
SetFieldApp "RQ_REQ_AUTHOR" ,True, False, 0, 3 'System Field - Author (non-mandatory)
SetFieldApp "RQ_REQ_DATE" ,True, False, 0, 4 'System Field - Creation Date (non-mandatory)
SetFieldApp "RQ_REQ_TIME" ,True, False, 0, 5 'System Field - Creation Time (non-mandatory)
SetFieldApp "RQ_REQ_STATUS" ,True, False, 0, 6 'System Field - Direct Coverage Status (non-mandatory)
SetFieldApp "RQ_VTS" ,True, False, 0, 7 'System Field - Modified (non-mandatory))
SetFieldApp "RQ_REQ_PRIORITY" ,True, False, 0, 8 'System Field - Priority (non-mandatory)
SetFieldApp "RQ_REQ_PRODUCT" ,True, False, 0, 9 'System Field - Product (non-mandatory)
SetFieldApp "RQ_REQ_REVIEWED" ,True, False, 0, 10 'System Field - Reviewed (non-mandatory)
SetFieldApp "RQ_TARGET_RCYC" ,True, False, 0, 11 'System Field - Target Cycle (non-mandatory)
SetFieldApp "RQ_TARGET_REL" ,True, False, 0, 12 'System Field - Target Release (non-mandatory)
SetFieldApp "RQ_USER_01" ,True, True, 0, 13 'Custom Field - Status (mandatory)
End Sub
Sub Req_New
RequirementField_Set
End Sub
Any pointers is greatly appreciated. I'm new to this so it's probably something really simple that I just can't see.