Page 1 of 1

Simple query from MenuSelect.Selected value.

Posted: Mon Sep 08, 2014 6:36 am
by LuisMa Suárez Gutiérrez

I cant use selected value, it always uses the first one. whatever it is.

my query works and i get the results, but it always uses the first value from my menuselect. no the chosen one.
on this page , notice that i selected Polanco from the yellwo menu but the query was built with Echeverra (on dev tools debug) : http://gyazo.com/ecea3b4d3d046f1e9e5a...

my mapping: http://gyazo.com/8bcb314cb90ee6d7dfe3...

my SelectMenu : http://gyazo.com/f39cc0647b6d15d726f5...

one last thing, for "where" on the request mapping, i used this JS : return '{"tianguis":"' + value + '"}';


Simple query from MenuSelect.Selected value.

Posted: Mon Sep 08, 2014 6:58 am
by LuisMa Suárez Gutiérrez

nevermind! =) I just figured it out.
I first had to delete my previous request mapping and map "Selected" to "where" like this
http://gyazo.com/da8a55e8c949062120ef...

it works, it just uses "value" from the SelectMenu. selected item,
if for some reason I need the label for that item. what would i need to do?


Simple query from MenuSelect.Selected value.

Posted: Mon Sep 08, 2014 9:46 am
by Evgene Karachevtsev

Hello LuisMa,

You should use js to take label:
preApperyio("selectName").find(":selected").text().trim()/pre
trim is used here to remove extra spaces and newlines


Simple query from MenuSelect.Selected value.

Posted: Sat Apr 25, 2015 6:45 am
by Bruce Stuart

thanks for posting this here Evgene and LuisMa.... I found it quite helpful during a conversation today with a client....

Worked great....