Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Option Labels

(0) ShareShare
ReportReport
Posted on by 55

Hello,

I'm an application developer from Singapore and I'm now working on some integration program that needs me to retrieve the option field labels from Navision. There's a field in main table but there are only integer values in it. I don't want to hard code the option labels.Can anyone help me with this?

 Regards,

Nay Min

*This post is locked for comments

  • Alex Chow Profile Picture
    Alex Chow 4,481 on at
    Re: Re: Option Labels

    An option field is fixed. Regardless of what's it's called, you would need to hardcode what the options values are in whatever language you use.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: Option Labels

    Hi Nay Min,

    The only way I know is through C/AL code so it looks like you will need to hard code this.  This is not so bad as the option string cannot be changed by an end-user and is normally done by developers.

  • Nay Min Lwin Profile Picture
    Nay Min Lwin 55 on at
    Re: Option Labels

     Yes, it does help.

     So the option Labels are not stored in tables and there's no other way but to hard code it. If there's any way to retrieve it, please let me know too, thanks.

     Thanks a lot.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Option Labels

    does this help?

    http://www.mibuso.com/forum/viewtopic.php?f=23&t=8343

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans