post barcode scanning procedure
There is no option for success event.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
There is no option for success event.
Hi,
There should be a "Run JavaScript" action...
Hi Maryna, Just added this code into the service on Results page and nothing shows up. I need the alert message to pop up when a barcode scanned is NOT in the db that reads this: "Nothing found, but we'll search for you". It worked beautifully before and all I did was update the datasource. Any help would be appreciated
Hi Scott,
Add Complete event handler for Barcode service.
Do you mean the Success js message for 'sorry product not found'? If so, does it go in design view?
Hi Scott,
No, if you use alert(), then it won't be displayed in Appery.io Builder UI. You can use for this purpose a label that can be hidden/showed if needed. It depends on how you want to display this information.
I just want the alert() pop up message to show when an item scanned cannot be found. It was there before and it worked. Where does that go?
Hello! Code should work preif (!data.length) {
alert("Not found");
}/pre
Regarding your Results page there is incorrect component name. You have prevar noRecordsLabel = Appery("no_records");/pre but it should be prevar noRecordsLabel = Appery("no_results");/pre
or just rename component on page.
So I have the: if (!data.length) {
Code: Select all
alert("Not found"); }
in the Home screen for Scan UPC component but nothing is happening
nevermind. it is working now! Thanks