Page 2 of 5
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Wed Oct 01, 2014 7:06 am
by Asif
Hi Yurii,
I forgot to mention some steps
- On 'ipadscreen1' page, open panel and click on 'Order Items'
- On order items page click on "View Order" button and then click on "View" button.
- You will see an order of id -"pos0011412146646173". Click on that and then on the next page click on Update Inventory.
This will update stock items in local db.
- After this when you click on the "plus" button you will not get the sql error.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Wed Oct 01, 2014 11:22 pm
by Yurii Orishchuk
Hi Asif,
Unfortunatly, i can't pass 2nd step.
Take a look on screen shot: http://prntscr.com/4s7yxa/direct
Regards.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Sat Oct 04, 2014 9:07 am
by Asif
Hi Yurii,
I tried this from my end and i m getting results
Take a look at the screen shots
also see the console logs
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Mon Oct 06, 2014 2:16 am
by Yurii Orishchuk
Hi Asif,
It seem to be you store some LSV before and then this processing was broken.
See details about what i have: http://prntscr.com/4th21y/direct
So please delete all LSVs from your browser and then try again. It should trigger problem i have.
http://prntscr.com/4th2ub/direct
Regards.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Mon Oct 06, 2014 6:18 am
by Asif
Hi Yurii,
Now i hav set LSV 'posId' on the load of this page, so now you will not get this problem.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Mon Oct 06, 2014 10:49 pm
by Yurii Orishchuk
Hi Asif,
I've tested initial problem and can not reproduce it.
See details about what i see:
1 Just loaded. http://prntscr.com/4tqmo1/direct
2 Click on first "plus". http://prntscr.com/4tqn2i/direct
3 Click on plus for third item: http://prntscr.com/4tqo05/direct
All, seems to be ok.
Regards.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Tue Oct 07, 2014 6:02 am
by Asif
Hi Yurii,
If you see nothing is coming below
Name Price and Qty
On the click of plus button, 'getCarItems' service is called in the JS
It will display Name Price and Qty of the Selected Items, which is not coming.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Tue Oct 07, 2014 11:52 pm
by Yurii Orishchuk
Hi Asif,
Please describe in future where (in UI) you have a problem. To save our and yours time.
So here is what i see:
http://prntscr.com/4u25j6/direct
I guess some of your code or service will delete this table and prevent from mapping. Please try to find a culprit disabling some parts of your implementation.
Regards.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Thu Oct 09, 2014 1:15 pm
by Asif
Hi Yurii,
In the current scenario, I m firing this service(getCartItems) from 'posDashBoard'
page, and the service mapping is on 'ipadscreen1'. I think this is the culprit.
I tried to call this service from ipadscreen1 page it is working fine, but when i m firing the service from posDashBoard page mapping is not happening not properly.
If you want to replicate this scenario follow these steps
First click on plus button to add an item in cartItems table.
Now reload the page and click on 'Master' button on ipadscreen1 page.
You will be able to see the cart items
Now click on 'Detail' button on 'posDashBoard' page. At this time you will not be able to see the content on the page.
Pls see the screenshots
This whole thing was working before the update, and i have not made any changes in this code after the update, so please help because it has become a showstopper for me.
Not able to retrieve data from a JavaScript Rest Service after the update
Posted: Fri Oct 10, 2014 4:21 am
by Yurii Orishchuk
Hi Asif,
I've found a culprit of this problem.
So when detailed page been loaded - "CurrentScreen" changed to this page and thus Apperyio can not consume components from master page.
Here is a code in your generic service to fix it:
pre
Code: Select all
var currentScreen = Apperyio.CurrentScreen;
Apperyio.CurrentScreen = "ipadscreen1";
settings.success(ourFinalArray);
Apperyio.CurrentScreen = currentScreen;
/pre
Regards.