Hello!
Could you clarify what exactly doesn't work?
Hello!
Could you clarify what exactly doesn't work?
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.
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?
Hi eascards,
Please show us screen shot from mapping and JS code which is you use.
Regards.
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.