How to display CR_ADDRESSED_IN value using SDK

0 Likes

Problem:

How to display CR_ADDRESSED_IN value using SDK

Resolution:

  • Product Name: StarTeam
  • Product Version: 2005 R2, 2006
  • Product Component: SDK
  • Platform/OS Version: All supported OS

Description:
How to display CR_ADDRESSED_IN value using SDK


Answer/Solution:
getAddressedIn() method in ChangeRequest class will return the label ID but in StarTeam client GUI, "Addressed In build" field displays label "name" .Hence you need to iterate through all the view labels to determine the display name. Here is the sample code

View view = cr.getView();
Label[] lables = view.getLabels();
for(int i=0;i&ltlables.length;i ) {
if(cr.getAddressedIn()==lables.getID() )
System.out.println(lables.getName());
}




Author: Praveen Boyineni

Old KB# 27504
Comment List
Related
Recommended