How to get the Display Value for an Enumerated Field using the SDK

0 Likes

Problem:

How to get the Display Value for an Enumerated Field using the SDK

Resolution:

  • Product Name: StarTeam SDK
  • Product Version: 2008
  • Platform/OS Version:All Supported OS


Question:

Where is the method in the SDK to get the display value for an enumerated field property?


Answer:

The Item class in the SDK does not come with a direct method for accessing the display value for an enumerated field, but if you take the following sample and change it according to your needs, you can get it to work.

CRs.getEnumDisplayName("Usr_public", Integer.parseInt(CRs.get("Usr_public").toString())));

Contact Borland Support if you have any additional questions regarding the StarTeam SDK.


Author: Daniel Rice

Old KB# 27841
Comment List
Related
Recommended