cancel
Showing results for 
Search instead for 
Did you mean: 

How to set nullable properties to null?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Vobis,

This is how u get as response even if u make it null-able with the check box provided at the property level.

U get false and 0 as values.

Regards,

Ashwin



Answers (0)