Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Not able to Read data when it is in offline in SMP 3.0

$
0
0

Hi,


I have referred this link  Getting Started with Kapsel - Part 10 -- Offline OData (SP09+)


I have written the below code


<script>

    var appId = "com.mycompany.offline"; // Change this to app id on server

    var applicationContext = null;

    var smpServerProtocol = "http";

    var smpServerHost = "Ipaddress";   // Given our system ip

    var smpServerPort = "8080";

    var authStr = "";

    var store = null; //Offline OData store

    var startTime = null;

    var online = navigator.onLine;

 

All other functions are same as the Index.html file mentioned in the above link.

 

It will get register successfully and data can be read when it is in online.

But when we read in the offline mode it prompts an alert after some time as:

An error occured {"message":"Request timed out"} 

 

And i am getting the below errors in the log.

errorLog.PNG

Please let me know the solution.

Thanks in advance.


Viewing all articles
Browse latest Browse all 3363

Trending Articles



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