Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to make selection in report data contract to handle multiple value ?

Posted on by 938
Hi guys,
 
If I understand correctly, when create report, we can only create Data Contract class, and let the system handle the UI. So, we do not need to create UI Builder class.
In extend, when we have certain parameter already defined in that Data Contract class, usually by writing Data Member Attribute, can we also make it enable for multiple value ?
 
When lets say I have this parameter RetailChannel :
[DataMemberAttribute,     SysOperationLabelAttribute('Channel')    ]    public RetailStoreId Channel(RetailStoreId _Channel = Channel)    {        Channel = _Channel;        return Channel;    }
 
How to make this parameter allow multiple value ? Can we still NOT create UI Builder class ? and how's the RDP class get the value then ? Means how to process it by read this multiple value ?
 
Thanks in advance.
 
  • Voltes Profile Picture
    Voltes 938 on at
    How to make selection in report data contract to handle multiple value ?
    Hi Layan,
     
    Yes, I actually using query. 
    Thanks for your reply and advice.
  • Verified answer
    Layan Jwei Profile Picture
    Layan Jwei 7,204 Super User 2024 Season 2 on at
    How to make selection in report data contract to handle multiple value ?
    Hi Community member,
     
    Yes for contract parameter multi select, you will need uiBuilder, check if the below link helps:
     
    Also you could replace data contract with query filter ( if you saw in some dialogs, there is a tab called "Records to include" which you can utilize to select multiple values without using uiBuilder) But this depends if your report is using query or not.
     
    Thanks,
    Layan Jweihan
     Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans