Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Hide the unwanted value for EnumComboBoxControl

(2) ShareShare
ReportReport
Posted on by 45
Hi all, currently I want to achieve for hiding the unwanted values in the enum combo box list. I have tried using the delete() and SysFormEnumComboBox to hide the value but neither of this solution work for me. When I used delete() approach, it will delete that record value that I deleted with that method in the grid view. 
 
The highlighted is the enum combo box that I wanted to hide the value.
 
 
is there any other way to do it?
Categories:
  • CC-24020107-0 Profile Picture
    45 on at
    Hide the unwanted value for EnumComboBoxControl
    Thanks for all replies, I appreciate it.
  • Waed Ayyad Profile Picture
    8,287 Super User 2025 Season 1 on at
    Hide the unwanted value for EnumComboBoxControl

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • Verified answer
    Martin Dráb Profile Picture
    233,013 Most Valuable Professional on at
    Hide the unwanted value for EnumComboBoxControl
    Then your code isn't suitable for your requirement.
     
    I suggest keeping the field read-only and adding a (drop) dialog for the status change, as in batch jobs, for instance.
     
     
  • CC-24020107-0 Profile Picture
    45 on at
    Hide the unwanted value for EnumComboBoxControl
    Hi , for my business objective, currently the form will show the list of the record of current status of the e-invoices. The implementation that I tried to achieve is to allow the user to change the record status of "completed" to other status which is "open" and "submitted" only, other than that need to hide.  Initially, the record field is not editable, when the status of the record is "completed", the system will allow user to edit and select other status that mentioned.  
  • Martin Dráb Profile Picture
    233,013 Most Valuable Professional on at
    Hide the unwanted value for EnumComboBoxControl
    Don't the lines have the Completed status? You've just removed the value from the combobox. If it's the case of Completed, you must decide whether you want to have it there or remove it; you can't have both situations at the same time.
     
    Maybe we should forget implementation details for a moment and look at the actual business requirements. What is the business problem you're trying to address by your implementation?
  • CC-24020107-0 Profile Picture
    45 on at
    Hide the unwanted value for EnumComboBoxControl
    Hi  and , I have tried the method it removes the value I don't want, but it seems will remove the value from my form.
    the code method,
     
    Is any other approach for hiding the value?
  • Suggested answer
    Ramesh Kumar Profile Picture
    3,501 on at
    Hide the unwanted value for EnumComboBoxControl
    Hi,
     
    I hope below link can help you
     
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • CC-24020107-0 Profile Picture
    45 on at
    Hide the unwanted value for EnumComboBoxControl
    This is the delete() method code I used in the form.
  • CC-24020107-0 Profile Picture
    45 on at
    Hide the unwanted value for EnumComboBoxControl
     thanks for the reply. I sorry for insufficient info. This is the context.
     
    Currently I want to hide the unwanted value for the enum combo box control like below.
     
    I have tried the solution of using the delete() method which success in ax 2012, however it seems not work as I expected in 365fo. As you can below when I use the delete() method, in my form it will blank the record value which the value that I deleted.
     
  • Martin Dráb Profile Picture
    233,013 Most Valuable Professional on at
    Hide the unwanted value for EnumComboBoxControl
    Moved from Integration, Dataverse, and general topics forum.
     
    Finding bugs in your code isn't easy if you don't share the code. But your statement When I used delete() approach, it will delete that record value suggests that you're calling delete() method of a table buffer, not delete() method of the combobox control.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans