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, ...
Unanswered

How to filter enum value in bound control

(0) ShareShare
ReportReport
Posted on by 20

   SysFormEnumComboBox formEnumComboBox;
    Set                 selectedvalues;
    
     public void init()
      {
        selectedvalues = new Set(Types::Enum);
        selectedvalues.add(WrkCtrType::Personnel);
        selectedvalues.add(WrkCtrType::Vendor);
        
        formEnumComboBox = SysFormEnumComboBox::newParameters(element, element.controlId(formControlStr(XYZ_ResourceList, XYZ_WrkCtrTable_WrkCtrType)),enumNum(WrkCtrType), selectedvalues);
       }

I am attaching above code.

I am filtering the Enum value of unbound control from this code which is working fine. but When I am using this code for bounded control it's not working.

Kindly guide me.

Thanks

I have the same question (0)
  • GirishS Profile Picture
    27,833 Moderator on at

    Hi Muzdalfa,

    Have you tried overriding the enter method of that control and delete the Enum elements at runtime?

    Try doing that and check.

    Refer to the below link.

    https://www.schweda.net/blog_d365.php?bid=674&wdl=en

    Thanks,

    Girish S.

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... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans