ALERT! The community will be read-only on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
25885 views

How to get/know the "field names" in QC?

Hi,

In QC users can see the Label of the fileds but I would like to know all the 'Field Names and Labels". Do we have any way to know the field names and labels with out go to customization and No database access.

Thanks,
Punati.
0 Likes
15 Replies
Absent Member.
Absent Member.

Use Excel report.

0 Likes
Absent Member.. Absent Member..
Absent Member..

@suchu

Show us your complete code segment rather than just the one line.

Are you getting an error message? If so, what is it?
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)
0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Using the same api logic, how to get the database filed name for the given UserLabel?

 

Thanks


Thanks,
Anil Nandam.
0 Likes
Cadet 3rd Class
Cadet 3rd Class

C# example ...

    private String DBFieldName(String entity, String fieldLabel)
    {
      try
      {
        return _almConn.Fields[entity].Cast<TDField>().First(x => x.Property.UserLabel == fieldLabel).Name;
      }
      catch (Exception e)
      {
        return "";
      }
    }
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.