Page 2 of 2

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

Posted: Mon Jul 21, 2014 7:36 am
by Maryna Brodina

Hello!

Could you clarify what exactly doesn't work?


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

Posted: Mon Jul 21, 2014 1:57 pm
by eascards

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.


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

Posted: Mon Jul 21, 2014 2:08 pm
by eascards

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?


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

Posted: Tue Jul 22, 2014 3:14 am
by Yurii Orishchuk

Hi eascards,

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

Regards.


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

Posted: Tue Jul 22, 2014 3:17 am
by eascards

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

Posted: Tue Jul 22, 2014 10:29 pm
by Yurii Orishchuk

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.


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

Posted: Wed Jul 23, 2014 11:14 pm
by eascards

Problem solved!!