web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to get the selected record enum value through x++ code

(0) ShareShare
ReportReport
Posted on by 226

hi,

  i need to get the enum value  which is in the selected record .can any one help how to access the active enum value in the active record

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi KasthuriNallathambi,

        Please find my block which is related to your question.

        http://axsuresh.blogspot.in/2016/03/enum-label.html

        it is just suggestion but not solution.

    Thanks

    Suresh

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi KasthuriNallathambi,

        If you want to achieve this in report? the above blog will useful for you.

        If not this solution, please let me know i have different way to do this!

    Thanks

    Suresh

  • Verified answer
    KasthuriNallathambi Profile Picture
    226 on at

    hi suresh

    i got the answer ...

    anyway thanks for ur help

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi KasthuriNallathambi,

        How you got the solution, could you please share here if possible.!

    Thanks

    Suresh

  • Verified answer
    KasthuriNallathambi Profile Picture
    226 on at

    hi suresh

    i have some records when i select particular record the enum element for this record will be shown in info log this is what i did

  • Verified answer
    KasthuriNallathambi Profile Picture
    226 on at

    static public TRKEnggDepartment finddept(Stud_ID _studid)

    {

      TRKStudent _trkstudent;

      select TRKEnggDepartment from _trkstudent where _trkstudent.Stud_ID == _studid;

      return _trkstudent.TRKEnggDepartment;

    }

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi KasthuriNallathambi,

        hey you asked about Enum value right? but in your code it will print only label.

        where you are using this code.

    Thanks

    Suresh

  • Verified answer
    KasthuriNallathambi Profile Picture
    226 on at

    i meant the (enum)value present in the record

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

      Sorry to disturb you, where your showing the enum value, the enum values shows only like 0,1,2,3. this is value there is something label will there for every value. but for for there is no use of this using in front end.

    Thanks

    Suresh

  • KasthuriNallathambi Profile Picture
    226 on at

    hi

    m not retriving enum value 0 ,1 ,..

    m retriving the element like a , b, c

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans