Hello,
Yes, you should replace this part of code in accordance to your needs:
pre
{"someOtherField" : "otherValue"}
/pre
See more here: http://devcenter.appery.io/documentat...
Regards.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello,
Yes, you should replace this part of code in accordance to your needs:
pre
{"someOtherField" : "otherValue"}
/pre
See more here: http://devcenter.appery.io/documentat...
Regards.
So I put the name of the search bar in for someotherfield but I don't know really know what otherValue should be. I noticed that it says just "value" when finding the book and when I checked the header it put in the correct book name. After making that discovery, I tried using value to replace otherValue and it put the book name there instead of the text in the input box. I switched it back to othervalue and checked the console and got this error.
This is currently the JS for the "where" parameter.
I really really don't know what to do. Here is my public link if it will help you help me.http://appery.io/app/mobile-frame?src...
Also, my app is shared with a href="mailto:Support@appery.io" rel="nofollow"Support@appery.io/a so if taking a look at it that way would be better, feel free. It is called MyApp.
Eascards,
If you don't know what additional condition you need we can not know it too.
So you can remove this part and use just:
pre
var whereObject = {$and: [ {"Book": value} ] };
return JSON.stringify(whereObject);
/pre
Regards.
If I did that, then it wouldn't search based on the text input, would it? I don't know what "value" means to try to translate it for my app. I do believe that "mobilesearchbar_1" should go in quotes but not sure what should happen on the other side of :.
any update?
Hi Eascards,
Unfortunatly your question is not clear,
Please specify what you want to implement.
Also, following code will search "value"(that you linked to this field in mapping) in "Book" field.
pre
var whereObject = {$and: [ {"Book": value} ] };
return JSON.stringify(whereObject);
/pre
Regards.
When a user searches for a specific calf, I want it to bring up the calf (text in the input field) that they search for. In the instance that they have more than one of the same calf only in a different book, I would like only the calf that is in the book that is selected on a different page. Currently it displays any calf in the book that is selected no matter what is in the text input field.
Ok, in this case you need to add in "$and" clause your additional criteria what you need.
See details here: http://devcenter.appery.io/documentat...
Regards