Hi,
I'm having an issue where the XS interface of a table is sending an Int64 value as a number not a string.
value is appearing in OData feed as:
"d":{"results":[{"__metadata": {"uri":"https://xs01_myaccount.hana.ondemand.com:443/myapp/services/signupmodel.xsodata/signup('<number>')","type":"myapp.services.signupType"},"USER_TYPE":1,"USER_COUNTER":32},{"__metadata": {"uri":"https://xs01_myaccount.hana.ondemand.com:443/myapp/services/signupmodel.xsodata/signup('<number>')","type":"myapp.services.signupType"},"USER_TYPE":3,"USER_COUNTER":1}]}}
where meta data has
<PropertyName="USER_COUNTER"Type="Edm.Int64"/>
The problem is this line in the OData V2 spec:
Edm.Int64 | VJsonInt64 | VJsonInt64 = quotation-mark int64Literal quotation-mark int64Literal = ; see section 2.2.2 |
An Int64 is supposed to be contained within quotation marks - but XS is not doing this!
Any suggestions on how to fix this behaviour?
Thanks!
Chris