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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Filtering Vews in Dynamics 365

(0) ShareShare
ReportReport
Posted on by 10

I have a view and I can filter it using jquery

$(document).ready(function (){
  var list = $(".entitylist.entity-grid")

  list.on("loaded", function () {
    list.find("table tbody tr").each(function () { $(this).find("td").eq(8).remove(); });
    list.find("table thead th").eq(8).remove();
    list.find("table tbody > tr").each(function (index, value) {
      var tr = $(this);
      //the first value in the row
      var code = tr.find("td:eq(0)").text();
     
          if(code != 25526){
            tr.remove();
                    }
                    
    })
  })
 
})

works fine, but there are many empty pages.

someone knows how to remove the rows that do not match and only leave the ones with a specific code. and from there make the paging

Cheers
 
I have the same question (0)
  • Suggested answer
    Fubar Profile Picture
    2,761 on at

    The Portal entity list is only showing 1 page of the results and so that is all you filter using that method.  If you know that the total number of records will be small then increase the number of records (defaults to 10) on the Entity List to cover your data set.

    Alternatively, use the out of the box filtering (but not sure exactly what you are filtering on so don't know if this is suitable or not) or write your own in Liquid using FetchXML and JS.

  • Community Member Profile Picture
    on at

    Hi Bidabehere,

    The simplest way to filter view in portal is customize the view in dynamics 365, which don’t need any code.

    You can first go Portal Management > Entity Lists to check which view is used.

    pastedimage1608099831888v1.png

    Then go Settings > Customization > Customize the system>entities > views.

    Open the view you need, click ‘Edit Filter Criteria’ to set filter.

    pastedimage1608100867645v2.png

    You can also configure ‘Filter Condition’ and Metadata Filter in entity list form.

    pastedimage1608107256916v1.png

    for more detailed information, you can refer following link:

    https://rajeevpentyala.com/2019/02/16/dynamics-portal-entity-list-filters/ 

    https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-list/entity-list-filter-configuration/ 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans