Skip to main content
Post a question

Notifications

Community site session details

Community site session details

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

Hide the unwanted value for EnumComboBoxControl

Like (2) ShareShare
ReportReport
Posted on 24 Mar 2025 07:26:25 by 31
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
    31 on 28 Mar 2025 at 00:36:04
    Hide the unwanted value for EnumComboBoxControl
    Thanks for all replies, I appreciate it.
  • Waed Ayyad Profile Picture
    7,968 Super User 2025 Season 1 on 26 Mar 2025 at 11:32:21
    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
    232,223 Most Valuable Professional on 25 Mar 2025 at 08:55:46
    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
    31 on 25 Mar 2025 at 06:16:06
    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
    232,223 Most Valuable Professional on 25 Mar 2025 at 05:58:12
    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
    31 on 25 Mar 2025 at 05:40:14
    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
    1,956 on 24 Mar 2025 at 18:31:57
    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
    31 on 24 Mar 2025 at 13:32:47
    Hide the unwanted value for EnumComboBoxControl
    This is the delete() method code I used in the form.
  • CC-24020107-0 Profile Picture
    31 on 24 Mar 2025 at 13:31:31
    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
    232,223 Most Valuable Professional on 24 Mar 2025 at 08:39:23
    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!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,325 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,223 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading started