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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Modify dynamically the FormComboBoxControl element's label

(0) ShareShare
ReportReport
Posted on by 60

Hi guys,

I'm trying to modify one of the element's label from the FormComboBoxControl dynamically.

Let's say the form combo box uses the base enum reqPOType which has the following elements: Purch, Production, Transfer, Kanban. Dynamically, duing the form initialization, I want to change the Kanban label to say something else if it meets certain criteria.

Anyone knows if that's possible?

Regards,

Brightlin

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, You can check if this article helps you. Is it a bound or unbound control?

    thinkinginax.blogspot.com/.../changing-labels-values-using-x.html

    Check this thread

    community.dynamics.com/.../336984

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi Brightlin,

    Try using label method of the control. Set the Auto declaration property of the control to Yes and then set the label for the control at runtime using label method.

    Refer to the below Microsoft documentation.

    https://learn.microsoft.com/en-us/dotnet/api/dynamics.ax.application.formcomboboxcontrol.label#dynamics-ax-application-formcomboboxcontrol-label

    Thanks,

    Girish S.

  • Suggested answer
    Anton Venter Profile Picture
    20,635 Super User 2026 Season 1 on at

    Hi,

    Have a look at the FormComboBoxControl methods. You should be able to change the Text value of the items in the combobox control at runtime.

    FormComboBoxControl

    https://learn.microsoft.com/en-us/dotnet/api/dynamics.ax.application.formcomboboxcontrol

  • Brightlin Profile Picture
    60 on at

    .

  • Brightlin Profile Picture
    60 on at

    Hi Girish,

    I'm not trying to change the label of the FormComboBoxControl's label but rather the label of one of it's element.

    Regards,

    Brightlin

  • Brightlin Profile Picture
    60 on at

    Hi,

    It's a bound control.

    I've seen those links are they weren't helpfull.

    To give you more info.

    If you go to Master planning -> Setup -> Item coverage -> then click on the "Item coverage" button -> under the "General" tab -> the field "Planned order type" is a FormComboBoxControl and I want to change it's element "Kanban" to say something else at runtime.

    I hope it's more clear.

    Regards,

    Brightlin

  • GirishS Profile Picture
    27,833 Moderator on at

    From my understanding, I think it's not possible to change the label of the Enum elements at run time.

    As a workaround, you can create your own Enum elements instead of changing the labels and delete the unwanted Enum elements at runtime.

    Refer to the below blog for deleting the Enum elements at run time.

    https://msdax.wordpress.com/2009/04/17/how-to-delete-the-enum-value-at-run-time/

    Thanks,

    Girish S.

  • Brightlin Profile Picture
    60 on at

    Ok. Thanks Girish!

  • Anton Venter Profile Picture
    20,635 Super User 2026 Season 1 on at

    It is however possible to change the text values of the elements of an unbound control using the Text method, see my post above about it.

  • Brightlin Profile Picture
    60 on at

    Yes I've tried that, but since it's bound it didn't work. Thanks Anton!

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 517 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 440

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans