Skip to Content
avatar image
Former Member

Error in SAPUI5 sap.m.NumericContent Value - Binding with ODATA

Hi Experts,

I am trying to bind the field "value" in sap.m.NumericContent with a value from ODATA service, I am getting '0' even if I get the value in the binding.

Please let me know how to bind the aggregation "content", since in other places I am able to bind similar aggregation properly but here the cardinality is 0..1 but I am passing the EntitySet in the XML View.

Kindly let me know how to bind a Entity in an aggregation with 0..1 cardinality. which may solve the issue.

capture.jpg (49.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 07, 2017 at 01:24 PM

    Hi Selvaganesh Ilango ,

    From backend service are you getting the data as an array of object containing only one element than the way you bind is correct but if its object structure instead of array than replace content with binding (this means you need to use element binding instead of content)

    Check out this https://sapui5.hana.ondemand.com/1.36.7/docs/guide/91f05e8b6f4d1014b6dd926db0e91070.html for more reference ...

    thanks

    Viplove

    Add comment
    10|10000 characters needed characters exceeded