Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Does anyone know how to make the search bar work to search for collapsible lists?

Hello!

Could you clarify what exactly doesn't work?

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Does anyone know how to make the search bar work to search for collapsible lists?

I used the tutorial above. I used a search bar instead of an input. When I test the app, I enter text in the search bar and click search. It shows the loading sign but there are never any results.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Does anyone know how to make the search bar work to search for collapsible lists?

Ok so found a slight error. I just copied and pasted the code in the tutorial which didn't talk to the database right. So I changed the code from "Where" to "calf_id". But I want the rest of the information with it not just the Calf ID. How should I code that?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Does anyone know how to make the search bar work to search for collapsible lists?

Hi eascards,

Please show us screen shot from mapping and JS code which is you use.

Regards.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Does anyone know how to make the search bar work to search for collapsible lists?

Hi Eascards,

You need to use regular expression search in your where object.

Please use following code instead of yours:

pre

var whereObject = {"calv_id": {"$regex": value, "$options": "i"}};

return JSON.stringify(whereObject);

/pre

If it does not help please provide us browser network tab screen shot where we can see request to the server(with url, request parameters, request headers and response).

Regards.

Return to “Issues”