Skip to main content
Dynamics 365 Community / Forums / Finance forum / How to make selection ...
Finance forum
Answered

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

editSubscribe (0) ShareShare
ReportReport
Posted on by 898
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.
 
Attachments
  • Community member Profile Picture
    Community member 898 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 2,829 Super User 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

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,130 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,689 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans