5 Replies Latest reply on Sep 26, 2019 10:02 AM by BoTa_264741

    Extract Display Name property from custom type

    BoTa_264741

      Hi,

      I am trying to find a way to extract the Display Name property from custom-declared component type:

      myType_01a.png

      myType_01a_B.png

      Here is "my_type" is a custom-declared type holding enumerated elements: Name: t1 (t2); Value: 1 (2), and Display Name: "AAA" ("BBB") accordingly. Parameter "my_Label" is assigned a Type of "my_type" and default Value of 1 (Display Name = "AAA").

       

      Now in the header file I can access the parameter my_Label Value using evaluator `$my_Label` (=1) , and extract the element Name ("t1") using API function:

      GetNameForEnum("my_Label", 1).

       

      Q. How can I extract the property Display Name ("AAA") from parameter my_Label?

       

      /odissey1 

      ...