• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Angular datatable search

 
Ranch Hand
Posts: 499
Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using Spring and angularjs in my project. I am using angular datatables to display tables. We were implementing the search feature and we have come across a different requirement. We would like to customize the search. I have explained the table structure and requirements below

1) Our table shows only these parameters: first name, last name, email and other general contacts.

2) This is a medical project, so there are lot of other columns which we don't show in the table.

3) But the client has requested for search with the hidden columns. For ex: there is a column for practitioner's code, when they search for a specific code, the name should appear in the data table.

4) The model(java class) that is used here has all the variables which are used for searching
ie., Following the above example, the model(java class) will have the practitioner's code

I think angular js offers search only for visible columns(correct me if I am wrong). But we want to search for columns which are present in model(java class) and show the results in the angular datatable. How can we solve this?
 
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Partheban,

I'm not familiar with angular datatables ( sure there's a ton of directives out there trying to things with tables ). But what did you specifically try with this library , show us some code and we'll be able to help ?

I think angular js offers search only for visible columns(correct me if I am wrong)

Not correct. AngularJS doesn't have any search capabilities built-in ( sure it does have filters but most likely you might want to extend it)
 
Partheban Udayakumar
Ranch Hand
Posts: 499
Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using spring for server side so



Data tables is


What I have to do now is. I have external search fields, so once I get List from the "/search" I will have to load it into the datatable. How can I do this?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic