web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
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 489

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

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at

    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.

  • Subhad365 Profile Picture
    21 User Group Leader on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 345 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 304

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans