openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.model.odata.v2.ODataModel.getKey(...) and .createKey(...) do not accommodate OData entitytypes with baseType defined

Open peterjohnlawrence opened this issue 9 years ago • 2 comments

OpenUI5 version: 1.44 Browser/version: Chrome 60.0.3112.24 Any other tested browsers/devices(OK/FAIL): Not tested

Steps to reproduce the problem:

  1. OData service has multiple entitytypes, most of which have a common BaseType
  2. The metadata is correct, so the entitytypes that have a baseType defined have no explicit key. Instead the key is inherited from the baseType

What is the expected result?

getKey and createKey should return the key from the baseType

What happens instead?

Returns no key

Any other information?

Similar problems exist with other methods that use the properties of the entityType: properties and navigation properties that are inherited from the baseType are not available.

peterjohnlawrence avatar Jun 15 '17 15:06 peterjohnlawrence

Hi @peterjohnlawrence,

I have created un internal incident with the following number: #1780233442

Kind Regards, Gery

gerym avatar Jun 26 '17 10:06 gerym

Hi @peterjohnlawrence, we know that we do not fully support BaseTypes, but we have no plan to enhance this support for the v2.ODataModel so far. BR, Jan

loginger avatar Aug 02 '17 09:08 loginger