Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Set default text in user added memo field in Req module

$
0
0

Hi,

 

Thanks for reading my question. I have multiple req types that we use in the req module of QC 11.0 ALM. One of my coding requirement is to display a default text in a user added memo field that is used in a req type called 'Tech Spec Cover'. This memo field should not be displayed in any other req type. Here is the code I am using now:

 

Sub Req_New
On Error Resume Next

    Code belonging to customization of other req types.....

If Req_Fields("RQ_TYPE_ID").Value = "Tech Specs Cover" then
      SetReqFieldApp"RQ_USER_05",True, True, 0, 1 'Work Identifier
      SetReqFieldApp"RQ_TARGET_REL",True, True, 0, 3 'Target Release
       SetReqFieldApp"RQ_USER_34", True, False, 2, 1 'Synopsis
               Req_Fields.Field("RQ_USER_34").Value = "Copy and paste the text from the Synopsis field on the ETS ticket under this heading."
       SetReqFieldApp"RQ_USER_35", True, False, 3, 1 'Alternative Solution
               Req_Fields.Field("RQ_USER_35").Value = "Enter a description of any alternative solution(s) considered for this change and a brief explanation of why they were not chosen."
        SetReqFieldApp"RQ_USER_33", True, False, 4, 1 'Secutiry Impact
                Req_Fields.Field("RQ_USER_33").Value = "Enter a description of the impact to security that the changes will have within the application."
        SetReqFieldApp"RQ_USER_32", True, False, 5, 1 'Implementation Impact
                  Req_Fields.Field("RQ_USER_32").Value = "Enter a description of any impact this change may have to the overall release."
end if

On Error GoTo 0
End Sub

  

This code only works when the new requirmenet button is clicked and the New req window opens with req type 'Tech Spec Cover'; if the New req window opens with any other req type and I change the req type to 'Tech Spec Cover', the default text does not appear. If i put this code in req_fieldchange module, it will apprear when the req type on New req window is chnaged to 'Tech Spec Cover', however, the value alwyas remains same and user is not able to edit the default value. Any advise is greatly appreciated. Thanks!


Viewing all articles
Browse latest Browse all 14708

Trending Articles