on 2021 Apr 22 12:06 PM
Hi all,
We have defined a CDS view and published it as an OData service.
@OData.publish: true
This service is in the mobile services as destination. Now we would like to add this service to the SAP Android SDK
Based on the metadata, the SAP Android SDK generates the Java definition of the request:
public ZCDS1Type getZCDS1Type(final DataQuery query)
The generated definition returns a single item instead of a list of items as it usually generates and returns.
The request itself returns a list of items, that is correct.
Only this definition is incorrect and it generates a crash inside the app since the definition does not match the returned type.
com.sap.cloud.mobile.odata.QueryResultException: getRequiredEntity: result value (with type Z_CDS1_CDS.Z_CDS1Type*) is not an entity value. It is a list with 340 items.
Android Studio 3.6.3
SAP Android SDK 2.1.1
Does something have to be adjusted in the CDS view?
Or in the OData service?
Or how can we fix this bug?
Thank you.
Best regards,
Marco
Request clarification before answering.
Hi Evan,
Many thanks for your response.
I had to forward your answer as I am not the Android developer. But now I have received the feedback:
There is no other 'get*' method that returns a List<ZCDS1Type>. And we also tried upgrading the SDK and it did not solved the issue.
What else can we do there?
Would it make sense if you take a look at the CDS view?
Best regards,
Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.