Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

search results not displaying

Hi Max,

Still nothing is showing up in the search results.

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

search results not displaying

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

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

search results not displaying

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?

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

search results not displaying

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

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

search results not displaying

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?

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

search results not displaying

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.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

search results not displaying

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?

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

search results not displaying

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

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

search results not displaying

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

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

search results not displaying

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

Return to “Issues”