Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

How to set nullable properties to null?

$
0
0

Hi,

 

I am having a problem setting certain properties to null so that the consumer receives these values like this:

 

...

<d:mydate m:null="true"/>

...

 

which works the Edm.DateTime and when the date value is initial.

 

Now I would like to achieve the same result with two other properties of type Edm.Boolean and Edm.Int16. Initial values of these types will result in false and 0, which is a total different meaning to the consumer:

 

Currently:

<d:mybool>false</d:mybool>

 

Wanted_

<d:mybool m:null="true"/> or <d:mybool/>

 

Thanks,

Christoph


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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