Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to pass multi values for SysFilterValueFactory::createFilterValueForString() to filter the count on tiles.

(0) ShareShare
ReportReport
Posted on by 438

Hi Team,
I am working on the below form. I have requirement to filter the tiles count on change event of filter control, for single values it is working fine but for multi values it is not working.
I am looking to pass multi values to the createFilterValueForString method. Please let me know if anybody has done this before.

SysIFilterValue itemIdFilter = SysFilterValueFactory::createFilterValueForString(element.parmItemId(), extendedTypeNum(ItemIdSmall));
filter.addItem(itemIdFilter, SysFilterOperator::Equal, SysFilterValueResolutionMethod::None);


Expected : filter value will be like  "Item1","Item2" then all the count of tiles only show record corresponding with Item1 and Item2.

pastedimage1671531019476v1.png

  • Subhad365 Profile Picture
    Subhad365 17 User Group Leader on at
    RE: How to pass multi values for SysFilterValueFactory::createFilterValueForString() to filter the count on tiles.

    Hi Vijay,

    Can we try to filter by using:

    a. Taking all the selected values in a container: conItems.

    b. Use a parameter with large string value (eg. Notes) so as to accommodate any number of selected items and then pass it on as element.parmItemId() , by casting the container to string using con2str(conItems).

    c. Also we need to use a relevant EDT in place of ItemIdSmall.

    Regards,

    Subha

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to pass multi values for SysFilterValueFactory::createFilterValueForString() to filter the count on tiles.

    Hi Vijay Yelmame,

    There is no possibility to pass multiple value to SysFilterValueFactory. As you can see in that class - you can only pass Date, Date time, Integer, Common, Int64, String.

    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans