Unable to query database when value in Select Menu changes.
First let me say thanks to Appery for the platform as a new developer I am happy that I was able to put something really decent over a weekend!! But have a question though:
I have 3 values in my select menu ( License #, Sacco, Route#) and one input box below it. What I want to do is allow the user to query the database and if they choose License #, they search DB for those values if they switch to Sacco they search sacco etc.
The original code that assume user is only searching for License # is working:
//Search for all license
return '{"License_Number":"'+value+'"}';
But I am struggling implementing the select menu functionality, I have played with number of option and nope e.g.
var newData = $($(Appery("Review_selectmenu")).find("option:selected")).attr("value");
//Loop through the DB and glab all values
return '{"newData":"'+value+'"}';
Review_selectmenu= Name of my select menu.
SearchReview_textinput= My text box where users enter values.