Page 1 of 1

App problem

Posted: Thu Apr 02, 2015 4:34 pm
by Junaid Malik

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


App problem

Posted: Fri Apr 03, 2015 1:53 am
by Junaid Malik

anyonee .....


App problem

Posted: Sat Apr 04, 2015 6:03 am
by Alena Prykhodko

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.


App problem

Posted: Tue Apr 07, 2015 9:32 pm
by Junaid Malik

how is this marked as answered ?
im still stuck


App problem

Posted: Wed Apr 08, 2015 10:49 am
by Illya Stepanov

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.


App problem

Posted: Fri Apr 10, 2015 2:16 pm
by Thiago Leite

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


App problem

Posted: Fri Apr 10, 2015 11:38 pm
by Junaid Malik

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


App problem

Posted: Sat Apr 11, 2015 2:44 am
by Thiago Leite

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.


App problem

Posted: Sat Apr 11, 2015 3:18 am
by Evgene Karachevtsev

Hello Thiago,

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


App problem

Posted: Sun Apr 12, 2015 3:04 am
by Junaid Malik

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