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

post barcode scanning procedure

There is no option for success event.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

post barcode scanning procedure

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

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

post barcode scanning procedure

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

post barcode scanning procedure

Hi Scott,

Add Complete event handler for Barcode service.

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

post barcode scanning procedure

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

post barcode scanning procedure

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.

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

post barcode scanning procedure

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?

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

post barcode scanning procedure

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.

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

post barcode scanning procedure

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

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

post barcode scanning procedure

nevermind. it is working now! Thanks

Return to “Issues”