on 2015 May 27 11:05 AM
Hello All,
I have been working on Offline Kapsel based application for iOS simulator with SMP 3.0 SP 07
I have configured below OData service of SAP Netweaver Gateway in SMP
(http://gatewayserver:portno/sap/opu/odata/APLX/HT_VENDOR_LIST/ht_vendor_listCollection)
and my iOS simulator has got successfully registered in SMP through my kapsel app.
my Gateway Odata service gives vendor list collection of 2000 row entries
When I do OData.read with URI generated from SMP I am getting all 2000 entries successfully. But when I do Odata.read after creating Offline store,
var properties = {
"name": "VendorOffline",
"host": "<<smpserver>>",
"port": "8080",
"https": "false",
"serviceRoot" : "http://<<smpserver>>:8080/<<appid>>/",
"definingRequests" : {
"VendorList" : "/ht_vendor_listCollection"
}
};
store = sap.OData.createOfflineStore(properties);
//var options = {};
store.open(openStoreSuccessCallback, errorCallback/*, options*/);
I got store opened successfully and my OData.read returns only 1 row entry. It should have returned all 2000 row entries to offline store.
Is there any one faced this scenario? any solution for this?
Request clarification before answering.
Hi Mohanasundaram,
This should not happen. I am wondering whether this is related to the primary key you defined in Odata service. What is the primary key of the Odata service ? Is the value of it is unique for all 200 entries?
Regards,Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Midhun,
Thanks for your immediate reply.
There is no key field defined in Gateway and so be with SMP too.
Is primary key mandatory to maintain all the data in Offline store?
My Odata service from SMP says below metadata.
<edmx:Edmx Version="1.0">
<edmx:DataServices m:DataServiceVersion="2.0">
|
</edmx:Edmx>
Discussion successfully moved from SAP for Mobile to SMP Developer Center as the more appropriate venue for this question.
Regards, Mike (Moderator)
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
11 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.