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

  • GirishS Profile Picture
    27,845 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 363 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 188

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans