Hi Max,
Still nothing is showing up in the search results.
Hi Max,
Still nothing is showing up in the search results.
Hello! Could you please post screenshot from Test tab?
http://docs.appery.io/wp-content/uplo...
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?
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
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?
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.
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?
Not sure I understand what JS is gone. You're not able to add JS?
Yeah I am at the results page now and not sure where to map the JS or add it in.. Here's : screenshot
You have to add it on service success event. Take a look here http://docs.appery.io/documentation/u...