Ashok
Posts: 0
Joined: Fri Dec 06, 2013 5:55 am

Algorithm

Hello everyone....
I have am trying to achieve a search type of implementation on my project.
the layout is like the below

Image

i am facing a problem in which i am storing some information on the parse database....and when i type in the values in the input box i need it to give me a drop down containing the items in that particular database..like this...
Image

can i achieve this in appery... ??? I will give a invoke service(GET SERVICE) on value change of that input box to validate it when entering the info to be searched ....Pls Do help me....

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Algorithm

Yes, you can build such app. In Appery.io you create HTML5 and PhoneGap mobile apps. So, you are only limited by what the browser supports. Yes, you would invoke the service to get the list of suggested items based on entered input. The actual popup that shows the suggested list -- it has to be coded by you.

Ashok
Posts: 0
Joined: Fri Dec 06, 2013 5:55 am

Algorithm

THank you
I implemented the code
return '{"Address":{"$regex":"^'+value+'", "$options":"i"}}';
but what i am suggesting is suppose i have a list which searches an address of a particular place....
The above command oly lists the elements whose letter starts with ie No.34 Old Parks Road....
Usually a person when he types in he will not know the No. 34.... so i want the search to work in such a way that not oly the starting elements i want it to search the middle and last element too! how can i alter the above code in such a way that it searches the middle elements too

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Algorithm

You mentioned you are using Parse. I think Parse also supports using regular expressions to do searching so you can try doing that.

Ashok
Posts: 0
Joined: Fri Dec 06, 2013 5:55 am

Algorithm

i dont think so they do.... i searched the docs every where pls do let me know if u find a link.... and yup pls help me out with the algortihm if you can

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Algorithm

If the backend you are using (Parse) doesn't support this -- there is little you or we can do. You need this functionality on the server side.

Return to “Issues”