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, ...
Suggested Answer

How to add Multi select enum to my report contract?

(0) ShareShare
ReportReport
Posted on by 1,552

Hi,

I want to add an enum fiels to my report contract, where I can multi select it's values.

What should i write in my contract class and how to do it? 

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    I think you want to do multiple selection in dialog. You should use the UIBuilder class for this.

    community.dynamics.com/.../using-ui-builder-class-to-develop-ssrs-reports-in-microsoft-dynamics-ax-2012

    It is not possible to make multiple selections in an enum field. You can fill enum values into tmp table and use SysLookupMultiSelectCtrl.

    community.dynamics.com/.../402664

  • WillWU Profile Picture
    22,361 on at

    Hi junior AX ,

    It's not possible to do that.

    Please check the old thread for another solution:

    community.dynamics.com/.../818876

    community.dynamics.com/.../402664

  • junior AX Profile Picture
    1,552 on at

    Hi Will Wuu,

    I saw another solution where we can add a new dataSet to the report with type AXEnumProvider. Any concerns about this one? 

  • ergun sahin Profile Picture
    8,826 Moderator on at

    If you share the codes or link we can comment on it,

    but this class is more for using ax enums in environments like EP. I don't think it will give you the option to choose more than one. (multi select)

  • junior AX Profile Picture
    1,552 on at

    Hi ergun,

    Actually it worked, i created a list contract with type string for the purchStatus

    And added a new dataset for the report with type ax enum provider and i was able to multiselect in the dialog. 

    However it seems i need the ui builder class, so i'll need to add all contract parameters as a dialog field. But can you help me with the enum list

    What should i do exactly in the ui builder to multi select enum values for the purchStatus enum. 

    What methods to use in ui builder also can you help me with the code

  • ergun sahin Profile Picture
    8,826 Moderator on at

    What you did ? what you couldn't and why you couldn't

    If you tell me details, I'll try to help. I don't see anything more to add than what I wrote at the beginning.

    Give it a try, as you get stuck or get errors, share the situation with code samples and we'll help.

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 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans