Page 1 of 2

Setting up a search with 2 variables

Posted: Fri Feb 22, 2013 12:49 am
by Chris Ross

I am trying to setup a search on my app. I already have the dynamic buttons with two variables (county & restaurant). i'm working on my database now. How do I setup the search with 2 variable buttons?


Setting up a search with 2 variables

Posted: Fri Feb 22, 2013 3:38 am
by maxkatz

I'm not clear what you mean by " search with 2 variable buttons"?


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 12:16 am
by Chris Ross

Sorry, I have two dynamic buttons on my app. One for counties and one for restaurants. I need to display a result based on the two buttons. The tutorial gives an input box and the search button. I need to change that into my 2 dynamic buttons. So my search has to be based on 2 variables, not the one input box.


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 12:50 am
by maxkatz

When two inputs, it's simpler to save the data into local storage. On button click, save both variables into local storage. Then in mapping, map one of the components to service (needed so that you can write JavaScript), then read both values from local storage.


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 3:22 am
by Chris Ross

what does [Ljava.lang.Object; cannot be cast to [Ljava.lang.String; mean?


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 3:25 am
by maxkatz

When importing a collection?


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 3:26 am
by Chris Ross

Yes. I was trying to upload my csv file, but it's not letting me. That was the error message that popped up.


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 3:30 am
by maxkatz

Known issue. We already fixed it, just need to push the update to production.


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 3:31 am
by Chris Ross

Thanks....you guys are the best :)


Setting up a search with 2 variables

Posted: Sat Feb 23, 2013 3:35 am
by Chris Ross

So I should be able to upload my database soon?