Notifications
Announcements
No record found.
Hi!
It's my first time to use combo box, just want to ask how to add value or how to populate combo box in ax 2012.
Thank you.
*This post is locked for comments
Hi Mari,
Can you elaborate on your question? SHould be combo box be bound to a table field or is it unbound? Do you want to use a pre-defined enumeration or are you trying to add values using x++ statements?
Hi Mari Eru,
You can create new enum in AOT and add it on a table or form, AX will render it as combobox.
If you need to build combobox in runtime for a dialog please refer to this article blogs.msdn.microsoft.com/.../how-to-add-a-combo-box-with-runtime-generated-items-to-a-dialog-object
Hi,
The combo box will be bound to a table. i will get the values from a specific table.
Hi
Thank you..
Hi Sir Andre,
Hey Mari Eru,
So did you try to create new enum, add values you need to it and than create new filed based on this enum ?
Hi Sir Ievgen
i already created enum. where will i used it? im planing to use EDT.
It seems that you mean a lookup form, such as when you're picking a customer when creating orders.
They're usually generated by AX according to table relations, although you can also create them by yourself if you need some special logic. Search for "lookup" to find more information.
Hi Sir Martin
The first image is my combo box, the second image is the values i want to display in my combo box. With this, what is the best way to populate it?
That's a lookup in AX terminology.
Which value do you want to put to your Price Band field on left? It seems to me that you should create a new field in your table, such as BandId.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Priya_K 4
Martin Dráb 4 Most Valuable Professional
Scott_itD 2 Community Manager