Page 3 of 9

search results not displaying

Posted: Fri Oct 04, 2013 6:48 pm
by Scott Schechtel6280324

Hi Max,

Still nothing is showing up in the search results.


search results not displaying

Posted: Fri Oct 04, 2013 7:02 pm
by Maryna Brodina

Hello! Could you please post screenshot from Test tab?
http://docs.appery.io/wp-content/uplo...


search results not displaying

Posted: Fri Oct 04, 2013 7:12 pm
by Scott Schechtel6280324

Here is the screenshot from test. incidentally the product I am trying to search is also the one I scanned and it happens to be at the bottom of the json list and is out of alignment with the other products. Would that matter?


search results not displaying

Posted: Fri Oct 04, 2013 8:11 pm
by Maryna Brodina

1) On page mainpage delete service allwines_allwinesnew3_query_service - you don't call it
2) On page results delete service BarcodeService - you don't call it
3) On Source tab delete files you've changed (results.html) and do Undo for WEB_RESOURCES
4) On page results add a Label and call it no_records, uncheck it's Visible property, place it outside mobilegrid_1 (for example on the top of the Grid)
5) On page results on restservice2 success event add JS:
prevar noRecordsLabel = Appery("no_records");
if (!data.length){
noRecordsLabel.text("Nothing found, but we'll search for you").show();
} else {
noRecordsLabel.hide();
}/pre


search results not displaying

Posted: Fri Oct 04, 2013 8:29 pm
by Scott Schechtel6280324

Woah are you sure about deleting Barcode service in results page? I still need that service in addition to the search. also why is it everytime I go to look at the mapping from a previous edit, all the mapping is gone? Is that what keeps throwing me off?


search results not displaying

Posted: Fri Oct 04, 2013 8:35 pm
by Maryna Brodina

Now you don't use this service on this page so you can delete it, if you're going to use it later then you can leave it.


search results not displaying

Posted: Fri Oct 04, 2013 8:46 pm
by Scott Schechtel6280324

OKay I went to results page to edit the rest service and add the JS and it is gone. How can I add it back in without throwing off the other services?


search results not displaying

Posted: Fri Oct 04, 2013 9:11 pm
by Maryna Brodina

Not sure I understand what JS is gone. You're not able to add JS?


search results not displaying

Posted: Fri Oct 04, 2013 9:17 pm
by Scott Schechtel6280324

Yeah I am at the results page now and not sure where to map the JS or add it in.. Here's : screenshot


search results not displaying

Posted: Fri Oct 04, 2013 9:20 pm
by Maryna Brodina

You have to add it on service success event. Take a look here http://docs.appery.io/documentation/u...