web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,827 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 540 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans