web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 468

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,825 Moderator 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.

  • Subhad365 Profile Picture
    21 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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 667 Most Valuable Professional

#2
CU05031448-0 Profile Picture

CU05031448-0 584

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 554 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans