Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Issues with flushing data back to server using the Offline Kapsel App

$
0
0

Hi all,

 

I followed this guide

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50cbb459-b45d-3210-dabe-e56b38d595eb?QuickLink=index&overridelayout=true&60408715024517

for creating a test app with the Kapsel and Cordova plugins through the webide template (master-detail Kapsel offline application). I've done all the walkthrough and installed all the necessary, the build from the HAT setup went fine and i created a basic app from the offline Kapsel template given on webide. I tested the app online and it worked, then i deployed with the specific command to local Hat. The path i followed for the offline part was using the HcpmsAdmin cockpit for dealing with the push-pull requests and the odata used, since it was only a test app was the dynamic session version from http://services.odata.org.

This is how i configured the Hcpms for the app part

hcpmAdmin.PNG

The app was configured only for android.

Then from command prompt i went to the deployed project folder created in the SapHybrid folder and from there i launched the cordova emulate command for emulating the app. From there i took the apk created in \hybrid\platforms\android\build\outputs\apk and i installed it on my android device. The app launches and i can use it offline too (i created a new entry named "entered offline") but the problem is that when i go back online and press the refresh button it gives me a "failed to flush data back to server" error message and than the screen locks to busy state and remais like this till i kill manually the app.

Screenshot_2015-09-15-09-50-54.png

 

 

The strange thing is that the new entry i added is already in the odata, so it means that the flush was done successfully.

 

 

Screenshot_2015-09-15-09-46-24.png

odata_entry.PNG

 

I don't understand what i'm doing wrong? Creating the test app was only the first step because i wanted to use the offline functions for a custom app.

 

Help is much appreciated, and any ideas are welcome.

Thanks


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>