Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: DataTable Search Nested Data

ais free asked 5 years ago


Expected behavior Data Table searches list of Contacts by last name, first name, etc.

Actual behavior Data Table will only search by unique ID, but not nested values in data model. Cannot find an example of this in documentation.

Model looks like this for example: *Data Obtained : [ { “hasAccount”: false, “id”: “4d14d6a6a06744e96b344fa45d”, “_contactInfo”: { “firstName”: “Billy”, “lastName”: “Bob” }*


Damian Gemza staff commented 5 years ago

Dear @allyinsco

Thanks for your report! We'll take a look at this, and let you know when this problem will be resolved.

I'm not able to provide you with some workaround, because we've got to fix this problem on our end.

Best Regards,

Damian


Ankita Singh free answered 4 years ago


Hi, how can I use searchLocalDataByMultipleFields() to search a nested field value? I am using angular-bootstrap-md v10.0.0


Arkadiusz Idzikowski staff commented 4 years ago

@Ankita Singh I answered here: https://mdbootstrap.com/support/angular/searching-by-column/


soumadeep free answered 4 years ago


Hi! Was this resolved.


Arkadiusz Idzikowski staff commented 4 years ago

This problem should no longer occur in v8.1.0 or later.


soumadeep free commented 3 years ago

Hi I upgraded to MDB ANGULAR PRO BASIC 11.0.0 angular - The search is still not working with MDBTable - this is in case where the json object is nested. Any help?


Arkadiusz Idzikowski staff commented 3 years ago

@soumadeep Please create a new thread and provide HTML/TS code on which we will be able to reproduce the problem.


ais free answered 5 years ago


Updating fixed the issue immediately! Thank you.


ais free answered 5 years ago


Was this resolved in the most recent release? Is it now possible to 'search' nested properties much like your example for 'sorting' through nested properties?


Arkadiusz Idzikowski staff commented 5 years ago

We added the fix for that in version 8.1.0. Please let us know if you encounter any further problems with table search.


Damian Gemza staff answered 5 years ago


Dear @allyinsco

This problem will be resolved with the next version of MDB Angular.

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.5.4
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No