BC Friday Tips #47 Enum Display Order

Enum Display

Happy #BCFridayTips for #msdyn365bc Developers!

๐Ÿ’กDid you know Enum values in AL are displayed based on their order in the code, not their ordinal?

For example:

Enum

This will display:
” “, Apple, Banana, Fig, Grape, Cherry, Durian, Elderberry, Honeydew

๐Ÿ‘‰ The ordinals donโ€™t control display order, the code order does.

Why does this matter?

โœ… You can rearrange values without renumbering the ordinals.

Share to help others โ™ป๏ธ and follow for more tips! ๐Ÿš€

thatnavguy

Experienced NZ-based NAV Developer and Consultant with 15+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. Passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *