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 :
Microsoft Dynamics AX (Archived)

Single Select to Multiple Select in Parameter window

(0) ShareShare
ReportReport
Posted on by

Hi,


In a report , i am having a field named order status which is a single select.Now i have to do multi select for all the status.Please refer the image below

snip_5F00_20170214121227.png

the value comes from prodstatus of prodtable.Should i create a new form to achieve the requirement


Waiting for someone to guide me!

Thanks

Anna

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,210 Super User 2025 Season 2 on at

    Hi Anna,

    You can read the next blog to know how to include a multi select on a dialog: daxtechies.blogspot.nl/.../dialog-in-ax-2012-multiselect-control.html

  • Community Member Profile Picture
    on at

    Thanks for the Response Andre,

    In my scenario i have to show all the 7 fields in the multi select,and then i have to filter based on those selected fields.So all the 7 fields must be displayed for select.

    Is it possible to achieve with the above scenario?

    Regards,

    Anna

  • Basheer17 Profile Picture
    2,720 on at

    Hi Anna,

    Yes It is possible. Using a query object and  SysLookupMultiSelectCtrl::constructWithQuery method. By looking at the screenshot i'm not sure but i can tell order status is coming from Enum. So you have to write some code to get multi select lookup work.

  • Martin Dráb Profile Picture
    237,990 Most Valuable Professional on at

    Have you considered using a query instead of simulating the same capabilities with a plenty of custom code?

    Users would be able to add ranges for any field, with multiple values, exclusions etc. and you would simply take the query and execute it.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    It is possible to do a multi-select in the dropdown. See also the comments section in the linked article, with the Custom UI Builder class for your SSRS report dialog.

    Alternatively you could add all enum values as separate checkbox field controls, and filter your records based on those dialog return values.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi All,

    I achieved a solution for above issue through the following code in contract class

        DataMemberAttribute('prodstatus'),
        AifCollectionTypeAttribute('prodstatus',Types::Enum , enumStr(ProdStatus)),
        AifCollectionTypeAttribute('return',Types::Enum , enumStr(ProdStatus)),
        SysOperationGroupMemberAttribute('Order'),
        SysOperationDisplayOrderAttribute('12')
    ]
    public List parmprodstatuslist(List _prodstatuslist = prodstatuslist)
    {
        prodstatuslist = _prodstatuslist;
        return prodstatuslist;
    }

    List enables me to do multi select!

    Thanks

    Anna

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans