eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

any update?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

More Detail on using the select menu

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

Return to “Issues”