Page 5 of 7

Creating a search with 2 variables

Posted: Mon Mar 04, 2013 8:37 pm
by Maryna Brodina

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


Creating a search with 2 variables

Posted: Mon Mar 04, 2013 8:40 pm
by Chris Ross

Creating a search with 2 variables

Posted: Mon Mar 04, 2013 8:42 pm
by Maryna Brodina

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


Creating a search with 2 variables

Posted: Mon Mar 04, 2013 8:44 pm
by Chris Ross

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.


Creating a search with 2 variables

Posted: Mon Mar 04, 2013 8:46 pm
by Chris Ross

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.


Creating a search with 2 variables

Posted: Mon Mar 04, 2013 8:46 pm
by Maryna Brodina

Ok:)


Creating a search with 2 variables

Posted: Mon Mar 04, 2013 9:52 pm
by Maryna Brodina

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.


Creating a search with 2 variables

Posted: Tue Mar 05, 2013 12:05 am
by Chris Ross

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


Creating a search with 2 variables

Posted: Tue Mar 05, 2013 2:27 am
by Chris Ross

:( ... Its not working


Creating a search with 2 variables

Posted: Tue Mar 05, 2013 8:48 am
by Kateryna Grynko

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?