cancel
Showing results for 
Search instead for 
Did you mean: 

BTP SDK iOS - OData Distinct values

former_member827435
Discoverer
0 Kudos
572

Hi All,

We are using the offline oData functionality in our iOS application using the BTP SDK for iOS. Here we are trying to get a distinct set of values for an particular non key column from an entity set using the DataQuery class.

We are using OData version 2.0 and I see that there is an method SelectDistinct which could be used to return distinct values, but we are not sure how it would work as the documentation is pretty unclear. When we tried, it didn't work properly and it still returned duplicate values.

Link: https://help.sap.com/doc/978e4f6c968c4cc5a30f9d324aa4b1d7/Latest/en-US/Documents/Frameworks/SAPOData...

Hence could anyone please help us here regarding select distinct items from an entity set for an property?

Thanks & Regards,

Vishal

Accepted Solutions (0)

Answers (1)

Answers (1)

evanireland
Advisor
Advisor
0 Kudos

This will probably be ignored by OnlineODataProvider (there's no standard URL pattern for it) and OfflineODataProvider, but should be respected by SQLDatabaseProvider and CloudSyncProvider.