Page 11 of 13

More Detail on using the select menu

Posted: Tue Sep 09, 2014 2:41 am
by eascards

So I added the code then in the "someotherfield" spot, I put mobilesearchbar_1 which is the name of the search input that I want to take the text from. I didn't work though. Should I have changed it to something else and changed the "otherValue" part too? Image


More Detail on using the select menu

Posted: Wed Sep 10, 2014 9:12 pm
by Yurii Orishchuk

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.


More Detail on using the select menu

Posted: Thu Sep 11, 2014 2:55 am
by eascards

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. Image

This is currently the JS for the "where" parameter. Image

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.


More Detail on using the select menu

Posted: Thu Sep 11, 2014 4:11 am
by Yurii Orishchuk

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.


More Detail on using the select menu

Posted: Fri Sep 12, 2014 4:00 am
by eascards

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 :.


More Detail on using the select menu

Posted: Sun Sep 14, 2014 8:29 pm
by eascards

any update?


More Detail on using the select menu

Posted: Sun Sep 14, 2014 9:19 pm
by Yurii Orishchuk

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.


More Detail on using the select menu

Posted: Sun Sep 14, 2014 10:01 pm
by eascards

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.


More Detail on using the select menu

Posted: Mon Sep 15, 2014 2:08 am
by eascards

More Detail on using the select menu

Posted: Mon Sep 15, 2014 4:49 am
by Yurii Orishchuk

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