Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Creating a search with 2 variables

Thank you. Could you please make your app public (Test, check public) and post that link here

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Creating a search with 2 variables

Thank's. We'll take a look and I'll update.

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

OH OH OH , my csv wouldn't upload, so I only inputted "Beaufort" county. So when you test it, please use "Beaufort" for the county.

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

For my "county" and "restaurant" buttons, I had to set up a huge javascript to give it the drop down buttons effect. Could that be the reason why I'm having so much trouble. My options are set in a rather large array in my javascript.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Creating a search with 2 variables

1) You are using the same service saniGrade_Grades_query_service on two pages. You can delete that service on page Query_Page.

2) On Results page add next JS in mapping to "where":

codevar whereClause = { "County": localStorage.getItem('chooseCounty'), "Restaurant": localStorage.getItem('localRestaurant')};
return JSON.stringify(whereClause); /code

3) You would need to bind localStorage to component (for both Select menus)

Image

4) on Query_Page in JS (on typeList value change event) in line

codedropDown&#46;append('<option value="' + newData + '">&#8203;' + newData + '<&#47;option>');/code

in value="' there is an invisible in editor additional symbol. Delete this part and write it again manually.

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

OMG, OMG, let me try this out......THANK YOU THANK YOU

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

:( ... Its not working

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Creating a search with 2 variables

Hi Chris,

On results page, you've created service to get data from database, but there is no "Invoke Service" action.

Could you clarify what isn't working exactly?

Return to “Issues”