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