Junaid Malik
Posts: 0
Joined: Wed Apr 01, 2015 2:26 pm

App problem

Hello everyone
ok i have a new problem. ive created a barcode scanning app which works but everytime I scan the product and click add or click update nothing changes or gets added to the database, so if i scan the item again it doesnt show that ive already scanned the item, does anyone no why this is happening thank you

what ive tired so far ####

The update_button will invoke different services according to the actual situation: if the scanned code was found in the database, it will invoke the update_product_info service, otherwise it will invoke the add_item_service.

if (Apperyio('update_button').text() == 'Update')
{
update_product_info.execute({});
}
else
{
add_item_service.execute({});
}

And the get_product_info service should be invoked just after the BarcodeService is finished. Once the code is scanned, the database request with the scanned code will be sent immediately.

barcode_service Success Invoke Service get_product_info

but even using this nothing gets added or updated everytime i scan

Junaid Malik
Posts: 0
Joined: Wed Apr 01, 2015 2:26 pm

App problem

anyonee .....

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

App problem

Hello Junaid,

[quote:] ive created a barcode scanning app which works but everytime I scan the product and click add or click update nothing changes or gets added to the database, so if i scan the item again it doesnt show that ive already scanned the item[/quote]

Please clarify how exactly do you implement this?
Do you follow some tutorial?
Screen shots will help.

Junaid Malik
Posts: 0
Joined: Wed Apr 01, 2015 2:26 pm

App problem

how is this marked as answered ?
im still stuck

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

App problem

Hello Junaid -

We not ignoring this topic, this marked as answered since one reply was from our employee.

To help you we need more information about your issue, so please answer Alena's questions.

Thiago Leite
Posts: 0
Joined: Fri Apr 10, 2015 2:16 pm

App problem

There is a bug in the tutorial at "Mapping action editor: update_product_info, Before send event".

The objectId left side variable is connected in objectId right side variable.

I connect the objectId left side in query_id and it worked properly

tutorial
Image

after correct
Image

Junaid Malik
Posts: 0
Joined: Wed Apr 01, 2015 2:26 pm

App problem

Hello Thiago Leite

Thank for your reply it means alot, ive changed what you have said but this hasn't changed anything i scan an item it message pops up saying the item isn't in the database please press add..... so i type in example
Name - test
Quantity- 12
Barcode - whatever the number what scanned

then when i scan another item ( a different bar code ) the same details come up as the first time that i added
Name - test
Quantity- 12
Barcode - whatever the number what scanned

please could you tell me what this is happening and could you send me all the screenshots of the mapping maybe ive done something wrong with the mapping thank you again Thiago Leite

Thiago Leite
Posts: 0
Joined: Fri Apr 10, 2015 2:16 pm

App problem

In the tutorial where it says this:

Apperyio('not_found_label').hide();
$('[dsid=update_button]').find('.ui-btn-inner').text('Update');

I changed to this:

Apperyio('not_found_label').hide();
Apperyio('update_button').text('Update');

In my college network, I noticed that the application was very slow. He seemed not work. The network of my home, worked perfectly.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

App problem

Hello Thiago,

Thank you for the update, we'll check this and will make changes in the tutorial if necessary.

Junaid Malik
Posts: 0
Joined: Wed Apr 01, 2015 2:26 pm

App problem

Thiago Leite

could you please send me your screen shots of the mapping i have a project due and it looks like you could help please ive made all the changes to requested but nothing changed maybe if i look at your mapping then i could make it work thanks again

Return to “Issues”