Page 5 of 6

post barcode scanning procedure

Posted: Wed Oct 09, 2013 3:50 pm
by Scott Schechtel6280324

There is no option for success event.


post barcode scanning procedure

Posted: Wed Oct 09, 2013 3:56 pm
by Kateryna Grynko

Hi,
There should be a "Run JavaScript" action...


post barcode scanning procedure

Posted: Tue Oct 29, 2013 6:37 pm
by Scott Schechtel6280324

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


post barcode scanning procedure

Posted: Wed Oct 30, 2013 9:03 am
by Kateryna Grynko

Hi Scott,

Add Complete event handler for Barcode service.


post barcode scanning procedure

Posted: Wed Oct 30, 2013 1:21 pm
by Scott Schechtel6280324

Do you mean the Success js message for 'sorry product not found'? If so, does it go in design view?


post barcode scanning procedure

Posted: Wed Oct 30, 2013 3:09 pm
by Kateryna Grynko

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.


post barcode scanning procedure

Posted: Wed Oct 30, 2013 6:37 pm
by Scott Schechtel6280324

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?


post barcode scanning procedure

Posted: Wed Oct 30, 2013 9:34 pm
by Maryna Brodina

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.


post barcode scanning procedure

Posted: Wed Oct 30, 2013 10:40 pm
by Scott Schechtel6280324

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


post barcode scanning procedure

Posted: Wed Oct 30, 2013 10:47 pm
by Scott Schechtel6280324

nevermind. it is working now! Thanks